bofredo
bofredo

Reputation: 2348

Android SDK not installing components on linux (ubuntu)

today i was trying to update the components of my sdk as the new android 4.3 is out. But it can't be downloaded as i don't seem to have the proper flags (superuser) to do it. I have found many solutions how to fix this on Windows, but i don't see how i can use them to get a solution for my ubuntu-command-line.

is there a way to launch the sdk as superuser via command-line? is that some trouble just with API18 or general issue?

Errors:


Preparing to install archives Downloading Android SDK Platform-tools, revision 18.0.1 URL not found: /opt/android-studio/sdk/temp/platform-tools_r18.0.1-linux.zip (Permission denied)

Downloading Documentation for Android SDK, API 18, revision 1 URL not found: /opt/android-studio/sdk/temp/docs-18_r01.zip (Permission denied) ................


Upvotes: 1

Views: 4228

Answers (2)

almo
almo

Reputation: 1

You might use "sudo" command. Please take a look of the man page before.

Upvotes: 0

CommonsWare
CommonsWare

Reputation: 1007359

is there a way to launch the sdk as superuser via command-line?

sudo .../tools/android

where ... is the path to your Android SDK installation. In your case, from the error message, this would appear to expand to:

sudo /opt/android-studio/sdk/tools/android

Upvotes: 3

Related Questions