我正在设置Linux笔记本电脑以进行抖动开发。 flutter doctor
检测到我的像素,没有发现任何问题,但是当我尝试通过IntelliJ运行我的Flutter应用程序时,它会打印出Unable to locate a development device; please run 'flutter doctor' for information about installing additional components.
adb devices
也找到了我的像素。
这是运行flutter doctor -v
的结果:
[✓] Flutter (Channel stable, v1.9.1+hotfix.6, on Linux, locale en_US.UTF-8)
• Flutter version 1.9.1+hotfix.6 at /opt/flutter
• Framework revision 68587a0916 (2 months ago), 2019-09-13 19:46:58 -0700
• Engine revision b863200c37
• Dart version 2.5.0
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
• Android SDK at /home/nathan/Android/Sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-29, build-tools 29.0.2
• ANDROID_HOME = /home/nathan/Android/Sdk
• ANDROID_SDK_ROOT = /home/nathan/Android/Sdk
• Java binary at: /opt/android-studio/jre/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405)
• All Android licenses accepted.
[✓] Android Studio (version 3.5)
• Android Studio at /opt/android-studio
• Flutter plugin version 41.1.2
• Dart plugin version 191.8593
• Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405)
[✓] IntelliJ IDEA Ultimate Edition (version 2019.2)
• IntelliJ at /opt/intellij-idea-ultimate-edition
• Flutter plugin version 41.2.3
• Dart plugin version 192.7761
[✓] Connected device (1 available)
• Pixel • FA69L0319288 • android-arm64 • Android 10 (API 29)
• No issues found!
还可以使用Flutter cli(flutter run
)运行应用程序