android - Flutter应用程序未在我的oneplus 7中运行,即使其显示已连接,一切也都与开发者选项相关

标签 android flutter dart visual-studio-code adb

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 doctorflutter 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/

相关文章:

flutter 禁用整个屏幕上的触摸

flutter - 导航到PDF查看页面时如何添加CircularProgressIndicator

android - 在 android 上使用 3D view filp - 翻转后没有 onClick

android - 错误: list 合并失败:android中的属性application @ appComponentFactory

android - 如何将自定义适配器添加到 AutoCompleteTextView

flutter - 向下滑动后窗口小部件不可见

java - 如何在 Android 中的 Google map 上显示 Circle 的信息窗口

flutter - 测试 block 事件类型 'Null' 不是 type 的子类型

flutter - 如何从它自己的 onTap 中禁用 ListTile?

android - Android 9上的Flutter WebView插件错误