-
Notifications
You must be signed in to change notification settings - Fork 323
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Android SDK "Android API 29 Platform" is not found on the disk or corrupted #6908
Comments
Also getting this error for the first time, but in my case it is API 32. Similarly cannot access emulators, or even physical devices, only the Linux target (my dev OS). |
Also getting this error. Just started happening two days ago. MacOS Ventura 13.2. |
Same Issue with API 29 on Linux. |
I am getting this error too on macos sonoma |
Same here. Macbook Pro 2022 / Ventura, just upgraded to Apple Sillicon from 2014 MPB. Also getting all-clear from flutter doctor Edit: I was just able to make the banners disappear for 29 and 30 by uninstalling and reinstalling the following from Preferences/Languages & Frameworks/Android SDK. Errors disappeared after restarting Android Studio
Seems you need to install the APIs directly above and below the errant APIs for some reason. Also fiddled with SDK in Platform Settings for awhile, not sure if that helped anything |
+1 to @Decron, simply uninstalling and reinstalling the Android SDK seems to resolve the issue. However this is just a workaround - the SDK shouldn't have been marked as corrupted in the first place, so there is still a bug to fix in Android Studio. |
Same problem |
Thanks @nguyengiabao0805 it works ! |
didn't help, I reinstalled SDK from the SDK manager, also didn't help. M2 Pro, MacOS Sonoma. Any other ideas? |
@Apollo108 follow this step File -> Project Structure -> SDKs then make sure SDK home path is correct and Android API Level match with Build target. If it didn't works take a screenshot of File -> Project Structure -> SDKs |
Hello @abd-koumare This is my screenshot. You can see the error message too. I have uninstalled and reinstalled API 29 already. |
@omidshojaee Ensure that the Build target dropdown does not have Android API 29 Platform. If this API version is not available, you can obtain it by navigating to the SDK Manager (File -> Tools -> SDK Manager -> SDK Platform) and then update the build target to Android API 29 Platform accordingly. |
Hi, @abd-koumare |
You have selected the openjdk path instead of the Android SDK home path. Please verify that the correct path is either C:\Program Files\Android\sdk or C:\Users\Yourname\AppData\Local\Android\Sdk, and then ensure that you set the Android SDK home path. Additionally, adjust the Build target accordingly. |
This is particularly annoying in my case because I do not use the android plugin, but the flutter plugin has a hard dependency on it. The warning at the top is not dismissible and there is no way to get rid of it without setting up Android and having it consume a ridiculous amount of memory, the whole reason I use IDEA instead of Android Studio to begin with. |
I also faced the same issue. |
root cause for this annoyance is caused by whatever is creating the default/template for It hardcodes the line
which is not based on any sensible actual value (e.g. minSDK would be 21, compile/targetSDK would be 35) |
@xster (based on flutter/flutter@a2e5e07) do you know what creates that template? should that file says |
Don't have this issue in AS but do in IDEA Ultimate. How to fix: |
Every time i click on Download Android SDK when i click configure, it actually prompts me for JDK...? |
Steps to Reproduce
main.dart
observe this notification (appears by itself, when the project is just created)To fix this I explicitly set up
<no SDK>
and the emulator appeared again in the dropdown, but the android sdk warning stays.Version info
The text was updated successfully, but these errors were encountered: