Android Studio Flutter真机调试错误

错误:Could not locate aapt. Please ensure you have the Android buildtools installed. No application found for TargetPlatform.android_arm64. Is your project missing an android/app/src/main/AndroidManifest.xml? Consider running “flutter create .” to create one.

解决:

1.安装build-tools(如果已经安装则忽略此步)

Android Studio的Tools->SDK Manager->Android SDK->SDK Tools, 勾选上Android SDK Build-Toos,Apply并安装

图片[1] - Android Studio Flutter真机调试错误 - MaxSSL

2.启动cmd,用flutter doctor检查, 如果提示未接受许可证,则按提示输入flutter doctor –android-licenses命令接受许可证,一路输入y并确认,问题解决

图片[2] - Android Studio Flutter真机调试错误 - MaxSSL

© 版权声明
THE END
喜欢就支持一下吧
点赞0 分享