Search code examples
flutterandroid-studiodart

flutter app could not locate aapt while building


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.


Solution

  • 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