Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Studio doesn't start, fails saying components not installed

I have installed Latest version of Android studio from Google. After launching it, it tries to download some packages.

After a while it shows the following error.

The following SDK components were not installed: extra-android-m2repository, tools, addon-google_apis-google-21, android-21, sys-img-x86-addon-google_apis-google-21, source-21, extra-google-m2repository

I couldn't rectify the error, even though I pressed Retry multiple times.

Anyone can suggest solution!

like image 984
Jeeva Avatar asked Dec 09 '14 10:12

Jeeva


People also ask

Why Android Studio is not opening after installation?

If Studio doesn't start after an upgrade, the problem may be due to an invalid Android Studio configuration imported from a previous version of Android Studio or an incompatible plugin.

How do I fix Android SDK is missing or corrupted?

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.


1 Answers

I had been facing the similar problem in Windows 7 and got the below problems while running the android-studio shortcut from my start programs menu for the first time.

Screenshot_1

Solution : Run As Administrator

The problem was due to the write permission in Windows C: drive and the Access is Denied message is displayed. Running the program as administrator downloads all the necessary components and now I can start Android Studio IDE.

Android Studio - Setup Wizard Success as Administrator

Update:

These permission issues doesn't seem to exist in Android Studio latest versions(checked in 1.3.2 in Windows 10) and works without the "Run as administrator" commands. If you still have the problem with the old/latest versions then it might be your firewall and proxy issues. In that case check out the other answers.

like image 92
Lucky Avatar answered Nov 30 '22 05:11

Lucky