At the time of installation there was no SDK packages downloaded previously, so when I tried downloading the SDK platforms it shows errors for Android Emulator as in the below screenshot. I am using proxy internet. Please suggest a better solution. I tried taking ownership from root to myself, but it didn't worked.
Asked
Active
Viewed 1.4k times
3 Answers
1
I ran the Android Studio as administrator and then it worked. Go into the Android Studio folder and type:
sudo sh studio.sh
-
How to do this? How to become administrator? – nilesh ingale Jan 24 '19 at 16:53
-
I tried running android-studio from root access but still the error is same. – nilesh ingale Jan 24 '19 at 17:09
-
Try sudo sh studio.sh in folder – erinnis Jan 24 '19 at 22:00
-
will you please explain the procedure? – nilesh ingale Jan 25 '19 at 05:43
-
Just go in android studio folder e type the command i write above – erinnis Jan 25 '19 at 06:44
0
There is another way to install Android Studio on a proxied internet without any errors:
- First, download the packages from the official site, then extract those packages in a new folder named
android
. - Then, create a new folder and give it the name
sdk
. - At the time of installation, when the setup wizard asks for the SDK folder, give this path of the SDK folder that you have created.
- Make sure that in the SDK folder, you have a folder named "platforms" so that it will download all the platforms in that folder.
It will work smoothly.

Scott Severance
- 14,056
0
Owner of ANDRIOD_HOME must be same as the user who is starting your Andriod Studio.
sudo chown -R $USER:$USER $ANDRIOD_HOME

r_D
- 141