最近開始使用 OpenJDK,不知道是不是這個關係,從 Eclipse 官網下載 Eclipse 3.7.2 Classic 後,安裝 Android Development Tools (ADT) 時,發現會出現錯誤訊息:
Cannot complete the install because one or more required items could not be found.
Software being installed: Android Development Tools 18.0.0.v201203301601-306762 (com.android.ide.eclipse.adt.feature.group 18.0.0.v201203301601-306762)
Missing requirement: Android Development Tools 18.0.0.v201203301601-306762 (com.android.ide.eclipse.adt.feature.group 18.0.0.v201203301601-306762) requires 'org.eclipse.wst.sse.core 0.0.0' but it could not be found
查閱一些資訊,有人說這是 JRE/JDK 的問題,讓我想起來我是用 OpenJDK 的,找了找,有人說解法就是去更新 Eclipse,於是我也嘗試看看,慶幸的解掉了。
環境簡介:
Eclipse 3.7.2 Classic
Build id: M20120208-0800
$ java -version
java version "1.6.0_20"
OpenJDK Runtime Environment (IcedTea6 1.9.13) (6b20-1.9.13-0ubuntu1~10.04.1)
OpenJDK 64-Bit Server VM (build 19.0-b09, mixed mode)
解法:
[Eclipse] -> [help] -> [Install New Software] -> http://download.eclipse.org/releases/indigo
Mobile Tools for Java
Mobile Tools for Java SDK
裝完後,再改去裝 ADT 就可以順利進行啦!
如果又碰到了下載回來的 ADT 不能執行,那記得裝一下 ia32-lib 吧!
$ ./adb
bash: ./adb: No such file or directory
$ sudo apt-get install ia32-lib
受用了!謝謝
回覆刪除