Mac端 futter安装过程出现的一些问题,记录下

问题一:

Could not automatically detect an ADB binary. Some emulator functionality will not work until a custom path to ADB is added.

解决:安卓模拟器左边栏点击1处,在3处找到adb,adb在/Library/Android/sdk/platform-tools/下。



问题二:

Android SDK file not found: adb.

解决:
1、安装 Android SDK Tools (Obsolete)


2、重新下载 sdk/platform-tools 参考:
2.1 cd /Users/Name/Library/Android/sdk 文件夹,删掉platform-tools文件夹;
2.2 Then start AS again and go to File->Invalidate caches/restart.【这步不知道是不是必须的】
2.3 打开sdk manager --> SDK Tools --> 选中 Android SDK platform-tools 点击OK开始下载。


问题三:

Some Android licenses not accepted. To resolve this, run: flutter doctor --android-licenses

解决:

flutter doctor --android-licenses 

你可能感兴趣的:(Mac端 futter安装过程出现的一些问题,记录下)