eclipse 中安裝android ADT時問題解決‘org.eclipse.ui.core 3.6.2’

我的eclipse的版本是3.6.01版本,在google的android官網上,目前,安裝adt時建議安裝在eclipse3.6版本以上,我的是在3.6以上(http://developer.android.com/sdk/eclipse-adt.html),但是在安裝adt時還是出了很多問題。在網上找了很多資料,都沒有解決了我的問題,最後還是老孃自己研究出怎麼解決來的,下面寫一下。

1,在官網下載最新版本:

  1. Download the current ADT Plugin zip file from the table below (do not unpack it).
    Name Package Size MD5 Checksum
    ADT 16.0.1 ADT-16.0.1.zip 7000078 bytes 03a2a23650ddac128c8b9e8aaf0aa433
  2. Follow steps 1 and 2 in the default install instructions (above).
  3. In the Add Site dialog, click Archive.
  4. Browse and select the downloaded zip file.
  5. Enter a name for the local update site (e.g., "Android Plugin") in the "Name" field.
  6. Click OK.

2,不要使用如下方式,因爲不知什麼原因,可能是網關吧,就是下載不了

  1. Start Eclipse, then select Help > Install NewSoftware....
  2. Click Add, in the top-right corner.
  3. In the Add Repository dialog that appears, enter "ADT Plugin" for the Name and thefollowing URL for the Location:
    https://dl-ssl.google.com/android/eclipse/
  4. Click OK
3,使用剛剛下載的zip包,然後在eclipse中加載和安裝,這時報錯:

缺少org.eclipse.ui.core 3.6.2

然後我以爲是我的ecliopse版本應該升級到3.6.2呢,所以重新下載了一個新的eclipse,結果又報這個錯:

缺少org.eclipse.jdt.core 0.0.0

然後在網上查找很多解決方案,有的說要找到一些鏈接資源加到Add Repository當中,然後安裝。我試過很多,但是基本都不能用。最後只能還是自己想辦法解決。

4,到eclipse官網,終於找到了答案,如下所示頁面,地址是(http://www.eclipse.org/downloads/packages/eclipse-ide-java-developers/indigosr1),這個頁面是我在點進一個eclipse下載版本的詳細信息時打開的。eclipse官網下載頁面提供很多all-in-one的下載包,但是,如果我們已經下載並安裝了其中一個包,難道真的需要再重新下載另一個包才能找到我們想要的eclipse組件嗎?不是這樣的,當我們已經下載了一個版本的eclipse,我們可以找到該版本的相應的packages,然後把package打到現在版本的eclipse上,這樣就可以爲eclipse添加新的組件。具體方法是,我點擊網頁上的Helios Packages鏈接,找到Eclipse IDE for Java Developers這個包,然後下載。因爲我之前下載的3.6.01的eclipse是主要適用於C++程序員的,所以,我缺少Java的組件,因此下載這個組件包。

Eclipse IDE for Java Developers

Package Details

The essential tools for any Java developer, including a Java IDE, a CVS client, XML Editor, Mylyn, Maven integration and WindowBuilder

Feature List

org.eclipse.cvs  
org.eclipse.egit  
org.eclipse.egit.mylyn  
org.eclipse.epp.package.common.feature  
org.eclipse.equinox.p2.user.ui  
org.eclipse.help  
org.eclipse.jdt 3.7.0
org.eclipse.m2e.feature  
org.eclipse.m2e.logback.feature  
org.eclipse.mylyn.bugzilla_feature  
org.eclipse.mylyn.context_feature  
org.eclipse.mylyn.ide_feature  
org.eclipse.mylyn.java_feature  
org.eclipse.mylyn.wikitext_feature  
org.eclipse.mylyn_feature  
org.eclipse.platform 3.7.0
org.eclipse.rcp 3.7.0
org.eclipse.wb.core.feature  
org.eclipse.wb.core.ui.feature  
org.eclipse.wb.layout.group.feature  
org.eclipse.wb.swing.feature  
org.eclipse.wst.xml_ui.feature  
   

Testing Details

Package Testers

Mik Kersten
Steffen Pingel



5,下載下來的包是eclipse-java-helios-SR2-linux-gtk.tar.gz,把它放在eclipse安裝目錄的同級目錄內,執行tar -zxvf eclipse-java-helios-SR2-linux-gtk.tar.gz,然後這個包中的內容會自動安裝到eclipse目錄的plugins目錄中。

6,這時重新裝載adt的zip文件,發現我的3.6.01版本已經能夠正常安裝adt了,而且不會報任何錯誤。


發佈了96 篇原創文章 · 獲贊 8 · 訪問量 52萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章