简体   繁体   English

Android:Eclipse ADT捆绑包安装不适用于Ubuntu 12.04.1 LTS

[英]Android: Eclipse ADT bundle install not working on Ubuntu 12.04.1 LTS

I'm trying to get started developing an android app, and I have a machine running Ubuntu 12.04.1 LTS to do it on (64 bit). 我正在尝试开始开发android应用,并且我有一台运行Ubuntu 12.04.1 LTS的计算机(64位)上执行此操作。 I downloaded the ADT bundle which is simple a zipped directory tree, and expanded it. 我下载了ADT捆绑包,它是一个简单的压缩目录树,并进行了扩展。 I tried running eclipse, but it failed due to some missing libraries, and so (after googling for solutions) I had to install a few 32bit libraries. 我尝试运行eclipse,但是由于缺少某些库而失败,因此(在搜索解决方案之后)我必须安装一些32位库。 After this, Eclipse runs, but it is broken in that it doesn't seem to be able to display any external windows. 此后,Eclipse运行了,但是它被破坏了,因为它似乎无法显示任何外部窗口。 For example when you start it there is a welcome screen with a hyperlink on it which should go to a tutorial "Build your first app". 例如,启动时会出现一个欢迎屏幕,上面有一个超链接,该链接应转到教程“构建您的第一个应用程序”。 Although the cursor changes when hovering over the link, nothing happens when you click it - or any other link on the page. 尽管将光标悬停在链接上时光标会发生变化,但是单击它或页面上的任何其他链接都不会发生任何反应。 More seriously, when invoking the emulator, it similarly fails to appear. 更严重的是,调用仿真器时,它同样也不会出现。 So it seems that for some reason, it cannot open, or display popup windows. 因此,由于某种原因,它似乎无法打开或显示弹出窗口。

Any suggestions? 有什么建议么?

Reinstall Eclipse from repo, run 从仓库中重新安装Eclipse,运行

sudo eclipse

Select Help > Install New Software Add new repo: 选择帮助>安装新软件,添加新的仓库:

https://dl-ssl.google.com/android/eclipse/

Install ADT and restart Eclipse (as root) After it runs select Use existing SDKs and chose previously unpacked SDK directory 安装ADT并重新启动Eclipse(以root用户身份),然后运行它,选择“使用现有SDK”并选择以前解压缩的SDK目录

The main problem I had, was no root privileges during install. 我遇到的主要问题是安装期间没有root特权。 If you install or update, use always sudo. 如果您安装或更新,请始终使用sudo。

I downloaded the ADT Bundle for Linux on my Ubuntu 13.04, and when I tried to run the "eclipse" application, it either didn't do anything at all when I clicked it or it said that it didn't know how to run executable files, and asked to search the ubuntu software center for a possible application to run it. 我在Ubuntu 13.04上下载了适用于Linux的ADT捆绑软件,当我尝试运行“ eclipse”应用程序时,单击它根本不执行任何操作,或者它说它不知道如何运行可执行文件文件,并要求在ubuntu软件中心中搜索可能的应用程序来运行它。

What I did was 我所做的是

  1. Open Terminal application (Ctrl + Alt + T) 打开终端应用程序(Ctrl + Alt + T)
  2. Move to the directory by 移至目录
  3. using "cd " typed "ls" and it showed the contents of folder, with the "eclipse" file as not green, simply white. 使用“ cd”键入“ ls”,它显示文件夹的内容,“ eclipse”文件不是绿色,而是白色。
  4. type "chmod +x eclipse" 输入“ chmod + x eclipse”
  5. Double click the "eclipse" file from your file browser. 在文件浏览器中双击“ eclipse”文件。

It should open the cool green-adt eclipse splash screen and start downloading some necessary files. 它应该会打开绿色的adt eclipse启动画面,并开始下载一些必要的文件。

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

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