颤振:没有连接的设备 [英] Flutter: no connected devices

查看:107
本文介绍了颤振:没有连接的设备的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发flutter项目,而且我是一个扑朔迷离的新手,我的Avd管理器仅显示虚拟设备,而不是真实设备,而我的另一个android项目显示我的真实设备和我的步骤进行操作,但没有任何反应.我正在从AVD管理器中打开仿真器,但是每当我运行该项目时,它都不会显示任何设备,此处是另一张图片.

I'm developing flutter project and I'm a newbie to flutter, My Avd manager shows only virtual device except real, whereas my another android project shows my real device and my 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将显示设备,但会显示类似

When I choose MainActivity to run than Android Studio shows device but it shows error like

无法开始编译:未为模块"flutter_app1_android"指定输出路径. 在配置项目"中指定输出路径.

Cannot start compilation: the output path is not specified for module "flutter_app1_android". Specify the output path in Configure Project.

我解决了问题,然后又发生了另一个问题

I solved the problem then another problem occur

无法确定应用程序ID:com.android.tools.idea.run.ApkProvisionException:错误:未为模块"flutter_app2_android"指定APK路径 客户端尚未准备好.

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位置和项目,

I searched it for this problem but unable to set path because of Project Structure Does not show Module tool, It is showing only SDK Location and project, Here is the image

推荐答案

是的,我找到了解决方案,由于未正确安装Flutter SDK,它没有显示任何设备.我卸载了Flutter Sdk.并按照其他过程安装Flutter

Yes, I found the solution, It was showing no device because of my flutter SDK was not installed properly. I uninstalled the Flutter Sdk. And follow other processes to install the Flutter

1)转到Git Bash并运行命令

1) Go to the Git Bash and run the Command

git clone -b beta https://github.com/flutter/flutter.git

它将在默认位置下载SDK.

it will download SDK at default place.

2)现在运行命令

flutter doctor

无论何时运行命令,它都会显示一些错误,可能是找不到SDK位置和找不到设备.

whenever you run the command it will show some error it may be SDK location not found and device not found.

设置主变量

1)转到控制面板

2)转到用户帐户

3)更改我的环境变量(如果您的SDK在其他位置,则设置位置"之类)

3)Change My Environment Variable (If your SDK is somewhere else then set Location like)

并重新启动系统以进行更改,然后再次运行命令

and restart your system to make changes and again run the command

flutter doctor

您的项目将显示您正在使用的设备和仿真器.

your project will show device and emulator which you are using.

这篇关于颤振:没有连接的设备的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆