设备列表未在使用Flutter的Android Studio中显示 [英] Device list doesn't shows in Android Studio using Flutter

查看:131
本文介绍了设备列表未在使用Flutter的Android Studio中显示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试使用Flutter(使用Android Studio IDE)开发应用.添加Flutter插件& Studio中的flutter SDK和所有内容均已配置,但未列出仿真器/实时设备.它显示类似无法列出设备:无法发现Android设备.请运行"flutter doctor"以诊断潜在问题"之类的错误.

I tried to develop app using Flutter(using Android studio IDE).Add flutter plugin & flutter SDK in studio and Everything is configured but emulator / real time device are not listed. Its shows error like "Unable to list devices: Unable to discover Android devices. Please run "flutter doctor" to diagnose potential issues"

引用链接: https://flutter.io/setup-windows/#android-setup

https://flutter.io/get-started/test-drive/# androidsstudio

推荐答案

在终端中配置抖动以检测Android SDK和Android Studio:

configure flutter in terminal to detect Android SDK and Android Studio:

$ flutter config --android-sdk /path/to/android/sdk
$ flutter config --android-studio-dir /path/to/android/studio

然后重新启动Android Studio/Intellij. 来源: https://github.com/flutter/flutter-intellij/issues /2113#issuecomment-383412308

then restart Android Studio/Intellij. source: https://github.com/flutter/flutter-intellij/issues/2113#issuecomment-383412308

这篇关于设备列表未在使用Flutter的Android Studio中显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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