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并安装

Android Studio Flutter真机调试错误_第1张图片

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

Android Studio Flutter真机调试错误_第2张图片

你可能感兴趣的:(Android,android,studio,flutter,android)