Translucent Pain
Translucent Pain

Reputation: 1541

What is an appropriate directory in which to install Android SDK?

I don't use java much so what are the common (best practice) locations to install components like this. I want to put them in a system directory so multiple users have access.

Upvotes: 28

Views: 24265

Answers (4)

Mateo Upegui Borja
Mateo Upegui Borja

Reputation: 1

To be more concise and allow user writing for things like sdk installations and etc, you could put it somewhere inside the ~/.local directory as per the XDG file system hierarchy like ~/.local/lib/arch-id/android-sdk Also remember to set the ANDROID_SDK_ROOT env variable to that directory as the ANDROID_HOME variable was deprecated.

Upvotes: 0

Justin ᚅᚔᚈᚄᚒᚔ
Justin ᚅᚔᚈᚄᚒᚔ

Reputation: 15369

Common locations are /opt, /srv, and /usr/local. I tend to lean toward /usr/local.

Note that the Android SDK doesn't really require you to install much, it's mostly self-contained. All you need to do is tell Eclipse where it is. You may also want to add the tools and/or platform-tools directories to the system-wide PATH so that your users can use adb and other tools.

See http://developer.android.com/sdk/installing.html.

Upvotes: 33

Michael Aaron Safyan
Michael Aaron Safyan

Reputation: 95499

On Linux, I typically use /usr/local/android-sdk, but anywhere that makes sense and that won't get clobbered by your system works. Just be aware that it may actually make sense to put the SDK in a per-user location, since it requires write access to create a VM image and to download SDK updates.

Upvotes: 16

coder_For_Life22
coder_For_Life22

Reputation: 26971

It doesnt matter where you put the sdk. Just put it in any folder where all user's can access it...

Upvotes: -1

Related Questions