颤动:没有连接的设备
Flutter: no connected devices
我正在开发 flutter 项目,我是 flutter 的新手,我的 Avd 管理器只显示除真实设备之外的虚拟设备,而我的另一个 android 项目显示我的真实设备和我的 Android WIFI ADB Here is Image is also showing a connected device, but flutter device selection showing nothing, What should I do? I'm following these steps but nothing is happening. I'm opening Emulator from AVD manager but whenever I run the project it does not show any device, Here is another image .
当我将 MainActivity 选择为 运行 而不是 Android Studio 显示设备但它显示错误
Cannot start compilation: the output path is not specified for module "flutter_app1_android".
Specify the output path in Configure Project.
我解决了这个问题然后又出现了另一个问题
Unable to determine application id: com.android.tools.idea.run.ApkProvisionException: ERROR: APK path is not specified for module "flutter_app2_android"
Client not ready yet.
我搜索了这个问题,但无法设置路径,因为项目结构不显示模块工具,它只显示 SDK 位置和项目,Here is the image
是的,我找到了解决方案,因为我的 flutter SDK 没有正确安装,所以没有显示任何设备。我卸载了 Flutter Sdk。并按照其他流程安装Flutter
1) 转到 Git Bash 和 运行 命令
git clone -b beta https://github.com/flutter/flutter.git
会在默认位置下载SDK。
2) 现在 运行 命令
flutter doctor
每当您 运行 命令时,它都会显示一些错误,可能是找不到 SDK 位置和找不到设备。
设置主页变量,
1) 转到控制面板
2) 转到用户帐户
3)更改我的环境变量(如果你的SDK在其他地方然后设置位置)
并重新启动系统以进行更改,然后再次 运行 命令
flutter doctor
您的项目将显示您正在使用的设备和模拟器。
- 确保 phone 上的 USB 调试已开启(您可以在“设置”->“开发者选项”->“USB 调试”中打开它)
- 将您的 phone 连接到您的 PC
- 您可以下载ADB Driver Installer 2.0,解压,点击ADBDriverInstaller.exe然后点击INSTALL即可。
希望这会有所帮助
我正在开发 flutter 项目,我是 flutter 的新手,我的 Avd 管理器只显示除真实设备之外的虚拟设备,而我的另一个 android 项目显示我的真实设备和我的 Android WIFI ADB Here is Image is also showing a connected device, but flutter device selection showing nothing, What should I do? I'm following these steps but nothing is happening. I'm opening Emulator from AVD manager but whenever I run the project it does not show any device, Here is another image .
当我将 MainActivity 选择为 运行 而不是 Android Studio 显示设备但它显示错误
Cannot start compilation: the output path is not specified for module "flutter_app1_android". Specify the output path in Configure Project.
我解决了这个问题然后又出现了另一个问题
Unable to determine application id: com.android.tools.idea.run.ApkProvisionException: ERROR: APK path is not specified for module "flutter_app2_android" Client not ready yet.
我搜索了这个问题,但无法设置路径,因为项目结构不显示模块工具,它只显示 SDK 位置和项目,Here is the image
是的,我找到了解决方案,因为我的 flutter SDK 没有正确安装,所以没有显示任何设备。我卸载了 Flutter Sdk。并按照其他流程安装Flutter
1) 转到 Git Bash 和 运行 命令
git clone -b beta https://github.com/flutter/flutter.git
会在默认位置下载SDK。
2) 现在 运行 命令
flutter doctor
每当您 运行 命令时,它都会显示一些错误,可能是找不到 SDK 位置和找不到设备。
设置主页变量,
1) 转到控制面板
2) 转到用户帐户
3)更改我的环境变量(如果你的SDK在其他地方然后设置位置)
并重新启动系统以进行更改,然后再次 运行 命令
flutter doctor
您的项目将显示您正在使用的设备和模拟器。
- 确保 phone 上的 USB 调试已开启(您可以在“设置”->“开发者选项”->“USB 调试”中打开它)
- 将您的 phone 连接到您的 PC
- 您可以下载ADB Driver Installer 2.0,解压,点击ADBDriverInstaller.exe然后点击INSTALL即可。
希望这会有所帮助