我是flutter和mobile方面的新手,但我曾与androidstudio和虚拟设备打过交道。现在我想一起使用androidstudio和flutter,当我在安装nexus5设备后尝试使用虚拟设备时,它说
No connected devices found; please connect a device, or see flutter.dev/setup for getting started instructions.
我找到了答案,上面写着使用 flutter doctor
然后我用 flutter doctor --android-licenses
上面写着: Please set the JAVA_HOME variable in your environment to match the location of your Java installation.
但是安装的jdk和这个位置没有问题,所以这是我的环境变量:
ANDROID_HOME = C:\Users\Matinwd\AppData\Local\Android\Sdk
JAVA_HOME = C:\Program Files\Java\jdk-14.0.2
注意:我不知道什么是默认的jdk,我必须弄清楚它
暂无答案!
目前还没有任何答案,快来回答吧!