eclipse +android常見錯誤及解決方案

來源:互聯網
上載者:User

1、WARNING: Application does not specify an API level requirement!

原因:建立項目時沒有指定min sdk version

解決方案:配置AndroidManifest.xml檔案

  (1)開啟AndroidManifest.xml檔案

  (2)給User Sdk  Min,Target,Max 都添加上相應的SDK版本號碼

 

2、Eclipse在開發android應用的時候出現儲存空間不足而無法安裝apk的錯誤

(1)解決方案很簡單就是:

先嘗試刪除不用的應用,如果空間空餘很多仍顯示空間儲存不足,則嘗試下面方法:

刪除Eclipse該工程目錄下的gen目錄下的apk檔案,重建並重新整理,運行後成功。

(2)利用命令列adb install **.apk時也會出現儲存空間不足:

解決方案就是命令列進入模擬器adb shell

然後進入adb /data/local/tmp目錄下將其中檔案刪除,然後再進行adb install **.apk即可。

 

3、[2011-05-22 22:24:53 - activity03] Installation error: INSTALL_FAILED_INSUFFICIENT_STORAGE

     [2011-05-22 22:24:53 - activity03] Please check logcat output for more details.

     [2011-05-22 22:24:53 - activity03] Launch canceled!

實際上是由於記憶體過小引起的,查看是否為模擬器分配了記憶體,如果沒有在AVD manager 裡面為模擬器分配ram。如果已經分配,課參照2。

 

4、點擊eclipse中的install new software沒有反應

解決方案:重新設定工作目錄

 

5、安裝Eclipse的ADT外掛程式時,提示“requires 'org.eclipse.gef 0.0.0' but it could not be found”

解決方案:在Eclipse的功能表列Help->Install New Software中添加http://download.eclipse.org/tools/gef/updates/releases/這一項,然後選擇對應Eclipse版本的選項安裝好即可。

注意:

安裝ADT時還需要添加以下網站以便自動安裝依賴的組件:

Eclipse GEF      - http://download.eclipse.org/tools/gef/updates/releases/
Eclipse EMF      - http://download.eclipse.org/modeling/emf/updates/releases/
Eclipse GMF      - http://download.eclipse.org/modeling/gmf/updates/releases
Eclipse Webtools - http://download.eclipse.org/webtools/updates/
Google eclipse Plugin - http://dl.google.com/eclipse/plugin/3.5

 

6、emulator已經在運行,但是adb報告 說“no device”

 解決方案:重啟adb

abd kill-server #關閉adb

adb services #重啟adb

 

7、 missing "org.eclipse.wst.sse.core 0.0.0" while installing sdk for eclipse 3.5

解決方案:在Eclipse的功能表列Help->Install New Software中添加http://download.eclipse.org/tools/gef/updates/releases/這一項

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.