Labels

Friday 12 December 2014

[SOLVED] Android Studio install problem, fails saying components not installed

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 "

SOLUTION:

It seems there is a problem with the default installer of Android Studio 1.0.0, the one that contain both the IDE and di SDK Tools: the default installation path for the android sdk tools ends with myInstallPath../sdk/android-sdk but the first run setting for the Android Studio points at myInstallPath../sdk. So here is what i did.

  • Step 1:
  • Cut & Paste the content of the android-sdk folder outside the  sdk folder, so the files are under:
  •  myInstallPath../android-sdk
  •  myInstallPath../sdk/
  • Step 2:
  • Use SDK Manager from the new location to update everything (Use this instead of the automatic wizard, you can select which package you want or need and you get also the speed and estimate time for the download)
  • Step 3:
  • Run Android Studio (it should load and check that the SDK is up to date and start the creation of an AVD, after that the IDE will load completely)
UPDATE - Workaround for the "download interrupted: read timed out" problem
The firewall and the proxy prevented my SDK Manager to download some updates, so i've recovered the .xml url for these updates, searched for the .zip files i needed and directly downloaded them with the help of a download manager, then i've manually installed them in their relative folder under the sdk folder ..a bit tricky but worked for me. For example in the Addon_xml_file i've searched for the m2repository, found the entry and downloaded the archive with the link m2repository_r14_zip_file. You always find the files you need in the same base as the .xml file (take a look at the url i've posted for the example).

Source: http://stackoverflow.com/questions/27376465/android-studio-doesnt-start-fails-saying-components-not-installed

4 comments:

  1. thank U very much it really helped me

    ReplyDelete
  2. Still working ? I'm having trouble to install android studio 3.0

    environmental is set, but is not working, java jdk 8 151 installed

    ReplyDelete
  3. worked for me, thank you very much :)

    ReplyDelete