Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Studio: Fail to parse SDK may be missing the directory add-ons

Tags:

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?

like image 550
Louis Tsai Avatar asked Nov 04 '13 16:11

Louis Tsai


People also ask

How do I fix the SDK emulator directory is missing?

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.

How do I reinstall Android SDK?

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.


2 Answers

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.

like image 174
Mark Avatar answered Jan 03 '23 11:01

Mark


I ran Android Studio as Administrator and it worked.

like image 27
aikutto Avatar answered Jan 03 '23 10:01

aikutto