this image is proof of my error.
$ flutter device
1 connected device:
GM1901 • bf9d2d80 • android-arm64 • Android 9 (API 28)
$ flutter run
Unable to locate a development device; please run 'flutter doctor' for information about installing additional components.
此错误不断出现,但是当我运行
flutter doctor
或flutter devices
时,它显示已连接。[!] Android Studio (not installed)
• Android Studio not found; download from https://developer.android.com/studio/index.html
(or visit https://flutter.dev/setup/#android-setup for detailed instructions).
[√] VS Code, 64-bit edition (version 1.34.0)
• VS Code at C:\Program Files\Microsoft VS Code
• Flutter extension version 3.1.0
[√] Connected device (1 available)
• GM1901 • bf9d2d80 • android-arm64 • Android 9 (API 28)
! Doctor found issues in 2 categories.
enter image description here
最佳答案
您是否安装了Android SDK?如果不这样做,请安装它。它应该可以解决您的问题。最简单的方法是安装Android Studio。
关于android - Flutter应用程序未在我的oneplus 7中运行,即使其显示已连接,一切也都与开发者选项相关,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56748434/