颤动应用程序无法在构建时找到aapt [英] flutter app could not locate aapt while building
问题描述
当我尝试构建并运行Flutter应用程序时,它向我显示以下消息:无法找到aapt.请确保您已安装Android buildtools.例外:构建Android应用程序时出现问题:请参见上述错误.我已经安装了构建工具和android sdk,所以我不知道是什么引起了这个问题.
When I was trying to build and run a flutter app it shows me the following message: "Could not locate aapt. Please ensure you have the Android buildtools installed. Exception: Problem building Android application: see above error(s)." I already have both build tools and the android sdk installed, so I don't know what might have caused this issue.
推荐答案
进入android sdk所在的文件夹,并在"build-tools"下删除其中的所有内容,然后使用android studio重新安装该构建工具将解决问题
Going into the folder where the android sdk is located and under the 'build-tools' delete everything inside it, then using android studio re install the build tools this will fix the issue
这篇关于颤动应用程序无法在构建时找到aapt的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!