I am new to android software development. When I try to write the first android program, a pop up window shows up after I finish choosing all the basic settings, said that it fail to parse SDK, and the directory 'add-ons' might be missing. I check the SDK folder I just install, and the SDK folder exist, also with plenty of stuff inside. Can anyone tell me how to solve this problem?
Quick fix: Go to the Tools –> SDK manager –> SDK tools. Deselect Hide obsolete packages option on the right bottom and further install Android SDK Tools(obsolete). A new folder named Tools is now generated in the SDK directory.
Install the SDKClick Tools > SDK Manager. In the SDK Platforms tab, select Android 12. In the SDK Tools tab, select Android SDK Build-Tools 31. Click OK to install the SDK.
The SDK is bundled with Android Studio, you don't have to download it separately.
I've seen this issue on both machines I've installed Android Studio on - the "add-ons" directory doesn't get created at install.
Assuming you're on 64 bit Windows and installed to default location, look here:
*C:\Program Files (x86)\Android\android-studio\sdk*
If you don't have a "Program Files (x86)" folder, look in "Program Files"
I'd bet there's no "add-ons" folder in there. If not, create one and than start Android Studio. You should see no problems.
I ran Android Studio as Administrator and it worked.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With