Android Studio does not start, cannot say that the components are not installed

I installed the latest version of Android studio from Google. After starting, it tries to download several packages.

After a while, the following error is displayed.

The following SDK components have not been 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 could not fix the error, although I pressed the Retry button several times.

Anyone can offer a solution!

+65
android studio
Dec 09 '14 at 10:17
source share
27 answers

I ran into a similar problem in Windows 7 and got the following problems when launching the android studio shortcut from my launcher menu for the first time.

Screenshot_1

Solution: Run as administrator

The problem occurred due to write permissions in Windows C: and the message Access is Denied displayed. Running the program as an administrator loads all the necessary components, and now I can launch the Android Studio IDE.

Android Studio - Setup Wizard Success as Administrator

Update:

These permission problems do not seem to exist in the latest versions of Android Studio (tested in 1.3.2 on Windows 10) and work without the "Run as administrator" commands. If you still have a problem with the old / latest versions, these may be problems with the firewall and proxy. In this case, check other answers.

+47
Dec 18 '14 at 5:25
source share

Windows: runs as administrator, Linux: sudo

+20
Dec 09 '14 at 22:42
source share

A possible solution is to check the proxy server settings; on Windows 7, you can find these settings in the other.xml file located in the path C:\Users\YourUsername\\.AndroidStudio\config\options .

Please note that if you change both the "USE_HTTP_PROXY" and "USE_PROXY_PAC" options to true, the error will continue, but the pop-up should notice that there is a double configuration problem and request permission with an input window for these parameters.

UPDATE - Possible Solution

I just managed to complete the wizard at home, maybe the proxy server is not a real problem (as @meanderingmoose last comment noted). There seems to be a problem with the default installer for Android Studio 1.0.0, which contains the IDE and di SDK tools: the default installation path for the sdk tools for Android ends with myInstallPath../sdk/android-sdk , but the first startup setting for Android Studio points to ..myInstallPath../sdk . So here is what I did.

  • Cut and paste the contents of the android-sdk folder outside the folder, so the files are under ..myInstallPath../sdk/
  • Use the SDK Manager from a new location to update everything (use this instead of the automatic wizard, you can select the package you need and also get the speed and evaluation time for downloading)
  • Launch Android Studio (it should download and verify that the SDK is updated and start creating AVD, after which the IDE will load completely)

UPDATE - workaround for boot problem: interrupt: read delayed

The firewall and proxy server did not allow my SDK manager to download some updates, so I restored the .xml URL for these updates, looked for the .zip files I needed and directly downloaded them using the download manager, I manually installed them in their relative the folder in the sdk .. folder is a little complicated, but it worked for me. For example, in Addon_xml_file I searched for m2repository, found the entry and downloaded the archive with the link m2repository_r14_zip_file . You will always find the files you need in the same database as the .xml file (look at the URL that I posted as an example).

+19
Dec 09 '14 at 16:06
source share

On OS X, it starts as admin for the first time, opening a new terminal and running commands:

cd /Applications/Android\ Studio.app/Contents/MacOS/

sudo ./studio

+16
Dec 27 '14 at 10:49
source share

Android Studio could not connect to the Internet on my working PC due to the settings of the Intranet Proxy / Firewall, changing the proxy server settings did not help me either.

Android Studio did not start, as it requires the installation of the above packages. In the course of work, I installed packages from the Android SDK Manager and solved it.

The SDK Manager can be found under C: \ Users \ <UserName> \ AppData \ Local \ Android \ sdk \ SDK Manager.exe In the GUI, select the following options that are relevant.

  • Tools-> All SDK tools for SDK and Platform-tools SDK in version 21. *
  • All for Android 5.0.1 (API 21)
  • Everything in the "Advanced" section

After installation is complete, try running Android Studio

+9
Jan 28 '15 at 7:22
source share

Please do not run desktop applications with administrator privileges. This is a dangerous habit.

I managed to solve this problem by closing the window with (X) in the upper right corner. He asked me if I need to start the setup wizard next time, which you don’t want. Then Android Studio started fine. After that, launch the Android SDK manager and click "Install" in the lower right corner.

Hope this helps

+8
Apr 22 '15 at 12:48
source share

On OSX, I solved this problem:

Step 1:

Go to System Preferences> Network: Advanced

enter image description here go to dl-ssl.google.com

Step 2:

Go to Proxies and set up proxy gateways as follows:

enter image description here

+7
Dec 31 '15 at 18:39
source share

Instead of the standard installation for Android studio, I use a custom installation, and it worked for me!

enter image description here

+7
Apr 30 '15 at 11:05
source share

On Windows, I was able to launch it by following these steps:

1) Download build-tools-21.1.1 from the following link: http://dl-ssl.google.com/android/repository/build-tools_r21.1.1-windows.zip

2) In windows, the android sdk file will be located in: C: \ Users \\ AppData \ Android \ sdk (the AppData folder will be hidden by default, you can make it visible in the "Folder Options")

3) In this way - C: \ Users \\ AppData \ Android \ sdk \ build-tools, you will already find the folder "21.1.2". On the same path, create a new folder and name it "21.1.1"

4) Unzip the package that you downloaded in step 1. Copy the contents of the "android-5.0" folder and paste it into the "21.1.1" folder created in step 3).

5) Launch Android Studio

+6
Jan 14 '15 at 7:54
source share

Click Show Details while the components load, this will give you more information about what is actually happening.

In my case, it was a resolution issue. To solve, I just ran the script using sudo. ( sudo ./studio.sh (which will resolve permissions problems in Linux). If you are on Windows, run the installation method as an administrator. (If it is a batch file, use the administrator command line, if it is an executable file, run as administrator and etc.)

+5
Dec 09 '14 at 22:16
source share

On Windows, allowed by running this file, which allowed me to update the SDK using the graphical user interface: C: \ Users \% UserName% \ AppData \ Local \ Android \ sdk \ tools \ android.bat

Android updated after updating SDK.

Note: running C: \ Users \% UserName% \ AppData \ Local \ Android \ sdk \ SDK Manager.exe did nothing on my system.

+4
May 13 '15 at 2:10
source share

I am in India and my connection was not working properly. (I have internet, but someday I have a blank page in chrome and I need to update)

I tried several times to restart android studio (almost 15 times). And now it works.

Perhaps you have the same problem.

+3
Dec 09 '14 at 9:56
source share

This answer is for OSX.

I needed to solve two things to successfully install Android studio:

  • Make sure you are not using a proxy server that does not allow you to access android resources. If you use a corporate proxy server, make sure that the settings are configured in Android Studio> Settings > Filter for Proxy . If you do not see the License Agreement (agree / disagree), your connection will not be reached on the Google download servers.
  • Run rm -rf ~ / .android . It was important for this to work for me. Previous installations or something else affected these boot caches. It is best to destroy it and start a new one.
+3
Jan 14 '15 at 7:28
source share
  • disable antivirus
  • run as admin
  • go out and start again
+2
Dec 11 '14 at 4:46
source share

For me, this problem is related to the proxy. In Mac OSX, even when the error is displayed above, the menu bar for Android Studio is displayed at the top. Select the settings of Android Studio -> Preferences and change the proxy server as shown below and the problem has been resolved. On Windows / Linux, there may be similar options for accessing the settings page while the error is displayed.

enter image description here

+2
Dec 17 '14 at 5:01
source share

If you are using Linux, I noticed that Android Studio cannot be started using JDK 8. You need to load open Jdk 7 and press alt + shift + t and type:

 sudo apt-get install openjdk-7-jre 

When you downloaded jdk 7, go to terminal, then go to android-studio / bin , then type

 sudo sh ./studio.sh 
+1
Dec 21 '14 at 9:42 on
source share

I encountered the same problem when trying to configure Android Studio to work. Running as admin did not solve my problem and I do not have direct access to the proxy / firewall settings. In the end, I solved the problem using the Android SDK Manager and installing the appropriate packages. Several package names and error messages (from studio installation failure) did not match directly, but a quick Google search showed me the light.

Hope this helps!

+1
Jan 13 '15 at 18:38
source share

Finally, I can solve this problem.

Do not install the Android SDK with the studio package, deselect when prompted.

Steps to solve:

  • Download the latest version of Android sdk, so runnning does not download any exta packages at first. Unzip to / yourAndroidSDKPath
  • Uncheck the Android SDK when installing the studio.
  • Give / yourAndroidSDKPath in studio a setup upon request. This works for me.

I tried other solutions, started as the "Administrator" and "Proxies" parameters, but nothing worked.

+1
Jan 25 '15 at 8:30
source share

Updating the latest sdk tools for Android from the sdk manager and removing the proxy server that I did to connect Android studio with vpn worked for me.

+1
Mar 07 '15 at 13:38
source share

I have a proxy server in my connection (connecting to the university), and I solved the problem using the SDK manager to download the SDKs, after which I opened the Android studio and worked without problems.

0
Dec 24 '14 at 8:25
source share

I also had problems with OS X Yosemite on a new installation of Android Studio.

My situation was that I used a VPN. In the settings, I eventually set the HTTP Proxy option to automatically detect after trying to run it as sudo and setting up a static proxy, but none of them worked. After that, I was able to successfully download. Hope this helps someone with a similar situation (VPN).

Android HTTP Proxy Settings

0
Jan 04 '15 at 4:20
source share

One possible solution is to open the Android SDK Manager from

 C:\Users\%user%\AppData\Local\Android\sdk 

Download and install the Android SDK 21.1.1 installer. Restart Android Studio

0
Feb 02 '15 at 12:14
source share

On OSX (Yosemite) I had the same problem. After trying a few other answers, I changed the installation directory files that belong to me:

cd / Applications / android-sdk-mac_x86

chown -R *

Where is my user account.

The problem I encountered while installing root is that some files end in the home directory of the root account, and others mine when I started using Android Studio.

0
Feb 04 '15 at 0:26
source share

I used the usual installation instead of the standard one and this solved the problem! (just select the custom option, and then you can set everything as standard)

0
Jun 02 '15 at 16:44
source share

For OSX (Mac)

I tried installing as Administrator (sudo) but it did not work




After that I solve the problem,

when setting, select a custom setting instead of the standard setting

then he will solve this problem

0
Jul 06 '15 at 18:47
source share

A little late, but I also had this problem, and the studio worked, since root only created more problems (using OSX here).

I fixed it by manually installing something that could not be installed using the Android SDK manager. Just run android sdk in the terminal (maybe the same on Windows, but don't quote me). Let him install all the necessary updates, and then, if you can’t complete this through the installation, manually find the packages that cannot install and install them.

I got a very unpleasant problem and got back to work .....

-one
May 25 '15 at 16:41
source share

"The following SDK components have not been installed: sys-img-x86-addon-google_apis-google-22 and addon-google_apis-google-22 . "

I would suggest just closing the window instead of clicking the Finish button and selecting "Do not run the installation wizard."

-2
Jun 27 '15 at 14:33
source share



All Articles