简体   繁体   English

在64位Linux上安装Android ADT

[英]Installing Android ADT on 64-bit Linux

For Linux 64-bit (opensuse 13.1), what is the correct version of Java to install to used the Android ADT? 对于Linux 64位(opensuse 13.1),要安装正确的Java版本以使用Android ADT? The Android developer website cites Oracle Java 1.6, other resources say used the latest Oracle Java. Android开发人员网站引用了Oracle Java 1.6,其他资源则使用了最新的Oracle Java。 Also, it is unclear which Java to install on a 64-bit system for Android development. 另外,不清楚要在Android开发的64位系统上安装哪种Java。 Some resources claim the 32-bit Java must be installed on a 64-bit system while others claim 64-bit Java on a 64-bit system. 一些资源声称32位Java必须安装在64位系统上,而其他资源则声称64位Java可以安装在64位系统上。 Help with the correct info for my platformed is appreciated. 感谢提供有关我平台的正确信息的帮助。

TIA! TIA!

If you are using 64bit Linux install 64bit java. 如果您使用的是64位Linux,请安装64位Java。 jdk link JDK链接

Oracle is providing different version for Linux. Oracle为Linux提供了不同的版本。 For ADT you can go through the general note section in the ADT link.Recommendable is Jdk 1.6 & later. 对于ADT,您可以浏览ADT链接中的常规注释部分。推荐使用Jdk 1.6及更高版本。 ADT link ADT链接

Hope it helps.. 希望能帮助到你..

Dexter, there's nothing special needed for a 64 bit machine, most of the android adt will work except few adb dependencies 德克斯特(Dexter),对于64位计算机,没有什么特殊的需要,除了很少的adb依赖项之外,大多数android adt都可以工作

You can still use open jdk 1.6 or 1.7 64 bit and use 64 bit version eclipse 您仍然可以使用Open JDK 1.6或1.7 64位并使用64位版本Eclipse

But you will have to install ia32-libs (not necessarily entire i386 package) 但是您将必须安装ia32-libs (不一定是完整的i386软件包)

If you want to just install the components used in adt then launch eclipse in debug mode and take note on logs for the libs missing which would be mostly lib32ncurses5 lib32stdc++6 如果您只想安装adt中使用的组件,则以调试模式启动eclipse并注意缺少的lib的日志,这主要是lib32ncurses5 lib32stdc++6

sudo apt-get install lib32ncurses5 lib32stdc++6 须藤apt-get install lib32ncurses5 lib32stdc ++ 6

which will enable adb and its related 32 bit android dependencies without all the unnecessary packages which will come bundled if you do an apt-get install ia32-libs 如果您执行apt-get install ia32-libs ,它将启用adb及其相关的32位android依赖项,而不会捆绑所有不必要的软件包

I think its better to follow the AOSP recomendations. 我认为最好遵循AOSP的建议。 They say install v1.6. 他们说安装v1.6。 You can do that by using the webupd repository. 您可以使用webupd存储库来做到这一点。 If you add the Webupd repository and install the oracle java installer via apt-get it will automatically install the x64 version of Java on your x64 system. 如果添加Webupd存储库并通过apt-get安装oracle java安装程序,它将自动在x64系统上安装Java的x64版本。 I have Java 1.6 x64 and ADT x64 on my Ubuntu 12.04 x64 and it works perfectly. 我在Ubuntu 12.04 x64上具有Java 1.6 x64和ADT x64,它可以完美运行。 Also remember you have to install all the packages that are listed on the AOSP page. 还请记住,您必须安装AOSP页面上列出的所有软件包。

I've used 64-bit open-1.6 for a long time with no problems. 我已经使用64位open-1.6很长时间了,没有问题。 Recently, I had an unrelated need to use 1.7 and switched to that and have had no problems. 最近,我与使用1.7无关,并切换到该版本,并且没有任何问题。

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

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