简体   繁体   English

在Ubuntu 12.04上安装android-sdk或adt-bundle

[英]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. 所以在我之前的笔记本电脑上,我已经安装了android-sdk-linuxEclipse而没有adt-bundle ,没有任何问题。 Also, I installed it under my home directory. 另外,我将它安装在我的home目录下。

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/ ). 现在我开始使用新的笔记本电脑(干净的平板电脑),我想尝试将adt-bundle安装到正确的/常规目录中(我理解为/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 . 但是在将包解压缩到/usr/local/我得到了一些奇怪的问题,比如adb不是可执行文件等。打开Eclipse会产生很多关于SDKADTadb的错误。

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 ? 另外,有什么理由我应该考虑单独安装android-sdk-linuxEclipse而不是使用adt-bundle

Thanks in advance :). 提前致谢 :)。 This will help me learn more about Linux filesystems and administrations a little bit too! 这将帮助我更多地了解Linux文件系统和管理!

It seems that the problem is in Linux filesystem permissions of your folder. 似乎问题出在您文件夹的Linux文件系统权限中。 In case of home directory the owner of the files is your user, in case of /usr/local/ the owner is root. 如果是主目录,则文件的所有者是您的用户,如果是/usr/local/则所有者是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. 至于分别安装sdk和Eclipse的原因,我认为你不会找到关键的。 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). 使用bundle更容易安装所有东西以使用Android(我认为在这种情况下Eclipse已经配置,但我不知道正是因为我从未使用过这种方法)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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