所有人。
我已经安装了Flutter,当我在设备上启动一个简单的应用程序时遇到了问题。
我使用了Visual Studio Code,但没有用。因此,我是使用
flutter run从命令行执行的,也没有任何效果。输出为:
Launching lib/main.dart on XT1069 in debug mode...
Initializing gradle... 6.2s
Resolving dependencies... 4.5s
Gradle task 'assembleDebug'...
Gradle task 'assembleDebug'... Done 11.6s
Built build/app/outputs/apk/debug/app-debug.apk.
Installing build/app/outputs/apk/app.apk... 5.0s
Error: ADB exited with exit code 1
Error launching application on XT1069.
在运行之前,我还尝试了命令
flutter clean。没有成功。
扑扑医生完整日志:
[✓] Flutter (Channel beta, v0.9.4, on Linux, locale en_US.UTF-8)
• Flutter version 0.9.4 at /home/valdinei/dev/flutter
• Framework revision f37c235c32 (4 weeks ago), 2018-09-25 17:45:40 -0400
• Engine revision 74625aed32
• Dart version 2.1.0-dev.5.0.flutter-a2eb050044
[✓] Android toolchain - develop for Android devices (Android SDK 28.0.3)
• Android SDK at /home/valdinei/Android/Sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-28, build-tools 28.0.3
• Java binary at: /home/valdinei/dev/android-studio/jre/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06)
• All Android licenses accepted.
[✓] Android Studio (version 3.2)
• Android Studio at /home/valdinei/dev/android-studio
• Flutter plugin version 29.1.1
• Dart plugin version 181.5656
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06)
[✓] VS Code (version 1.28.2)
• VS Code at /usr/share/code
• Flutter extension version 2.19.0
[✓] Connected devices (1 available)
• XT1069 • 0013848438 • android-arm • Android 6.0 (API 23)
• No issues found!
PS:我的设备已经处于调试模式,并且在尝试运行命令时屏幕甚至“唤醒”。
我的应用程序是创建项目时出现的默认应用程序。
操作系统:Linux Mint 18.3
希望您能帮助我。谢谢!