×

一波Android Flutter踩坑

1.环境变量ANDROID_HOME、ANDROID_SDK_HOME(avd)要设置好

2.出现license问题,尝试

flutter doctor --android-licenses
sdkmanager --licenses

3.出现

Unable to download needed Android SDK components, as the following licenses have not been accepted:
Android SDK Platform 27, Android SDK Build-Tools 26.0.2
尝试

android update sdk --no-ui --all --filter build-tools-26.0.2,android-27,extra-android-m2repository

如果不行检查local.properties的sdk.dir是否正确

群贤毕至

访客