Flutter installation error - Android sdk file not found: ....... aapt?
4,914
Solution 1
I spent like half a day solving this issue. For me flutter doctor
displayed this error:
X Android SDK file not found: SomeLongPath/Android/sdk/build-tools/30.0.4-rc1/aapt
I just deleted this 30.0.4-rc1
folder because it was empty for some reason, ran flutter doctor
and the issue is solved!
Solution 2
Error solved:
just uninstalling build-tools 29.0.2 and reinstalling build-tools 29.0.2 in sdk manager android studio
thank you,
Solution 3
For my case and after wasting a full day. I was getting:
X Android SDK file not found:
C:\Users\user\AppData\Local\Android\sdk\build-tools\31.0.0-rc4\aapt.
So I copied C:\Users\user\AppData\Local\Android\sdk\build-tools\ path and pasted it in a folder directory path to navigate. I deleted a folder named 31.0.0-rc4 and run:
flutter doctor -v
again. Hope someone gets helped.
Author by
SanthoshKumar R
Updated on December 20, 2022Comments
-
SanthoshKumar R over 1 year
When i run a hello world application in flutter
it show
Unable to locate a development device; please run 'flutter doctor' for information about installing additional components.
[!] Android toolchain - develop for Android devices (Android SDK version 29.0.2) • Android SDK at C:\Users\hi\AppData\Local\Android\sdk • Platform android-29, build-tools 29.0.2 X Android SDK file not found: C:\Users\hi\AppData\Local\Android\sdk\build-tools\29.0.2\aapt. • Try re-installing or updating your Android SDK, visit https://flutter.dev/docs/get-started/install/windows#android-setup for detailed instructions. ! Doctor found issues in 1 category.
then i tried flutter doctor
after that i get this ..