Could not locate aapt. Please ensure you have the Android buildtools installed.Exception: Problem…

内容分享1周前发布
0 0 0
Flutter 开发调试一直报错

Could not locate aapt. Please ensure you have the Android buildtools installed.Exception: Problem building Android application: see above error(s).
打包一切都正常,就是Android Studio无法运行安卓模拟器上面。

参考回答资料https://stackoverflow.com/questions/66596943/flutter-app-could-not-locate-aapt-while-building

我的解决办法:

mac和windows系统思路一致,都是删除Adnroid SDK安装目录中,
<font color=red >/用户/xxxx/资源库/Android/sdk/build-tools</font>
中最新的tools(看自己项目当前用的那个)。
删除之后重新更新Android SDK最新的build-tools。
更新完成之后在flutter run进行尝试。

Could not locate aapt. Please ensure you have the Android buildtools installed.Exception: Problem...

© 版权声明

相关文章

暂无评论

您必须登录才能参与评论!
立即登录
none
暂无评论...