简体   繁体   中英

Installing android-sdk or adt-bundle on Ubuntu 12.04

So on my previous laptop I've installed the android-sdk-linux and Eclipse separately without the adt-bundle , without any issues whatsoever. Also, I installed it under my home directory.

Now that I have a new laptop (clean slate) to start with, I wanted to try and install the adt-bundle into the correct/conventional directory (which I understand is /usr/local/ ).

But after extracting the bundle into /usr/local/ I get weird issues like adb not being an executable, etc. Opening Eclipse yields a lot of errors regarding the SDK , ADT , and adb .

What is the correct method of doing this? A step-by-step or otherwise comprehensive set of methods would be greatly appreciated.

Also, is there any reason why I should consider installing android-sdk-linux and Eclipse separately instead of using the adt-bundle ?

Thanks in advance :). This will help me learn more about Linux filesystems and administrations a little bit too!

It seems that the problem is in Linux filesystem permissions of your folder. In case of home directory the owner of the files is your user, in case of /usr/local/ the owner is root. You should try to change the owner of the folder:

chown -R <owner_name>:<owner_group> <your_dir>

As for reasons to install sdk and Eclipse separately, I don't think that you'll find critical one. Using bundle it's easier to install everything to work with Android (I think that Eclipse in this case is already configured, however I do not know precisely because I've never used this approach).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM