eclipse出現的各種問題

來源:互聯網
上載者:User
解決 Your project contains error(s),please fix them before running your application問題2011-12-05 11:40

解決 Your project contains error(s),please fix them before running your application問題

1.網上查詢最多的是:project--clean

2.在項目列表裡刪除該項目,再匯入

3.刪除R.java檔案然後自動重建

4.升級ADT到最新版本
5.重啟eclipse
6.重新安裝eclipse3.5和3.6

7.建立項目設定對應的Version的值,Min SDK Version(這個是設定程式希望運行在的系統版本)

然而,這些方法或許沒有解決你問題。OK,我這裡再增加一種解決方案,希望對大家會有協助。

錯誤資訊:
Description Resource Path Location Type
Project 'Testbitcare' is missing required library: 'C:\Workspaces\MyEclipse\Testbitcare\assets\ksoap2-android-assembly-2.4-jar-with-dependencies.jar' Testbitcare  Build path Build Path Problem

很顯然,路徑出問題了。

解決方案:項目(Project)右擊屬性,或者Project-Properties,然後選擇Java Build Path-Libraries-Add JARs,選中剛才報錯的檔案的根目錄,然後OK。

 工程上有紅叉,不知道少了什麼,但是袋中卻沒有任何錯誤,運行程式報錯為: Your project contains error(s),please fix them before running your application.

控制台[2011-07-21 11:00:33 - Dex Loader] Unable to execute dex: wrapper was not properly loaded first
           [2011-07-21 11:00:33 - HellWorld] Conversion to Dalvik format failed: Unable to execute dex: wrapper was not properly loaded first這時你只需要將eclipse檔案夾中的eclipse.ini開啟,把最後2行文字修改為-Xms128m-Xmx512m重新運行程式即可。*.java 檔案 和 main.xml 檔案都沒有錯誤。
在左邊的項目目錄裡,項目名上有紅叉,其它地方沒有。
請問大家有什麼好的辦法呢

Eclipse 編譯 Android工程時,提示該錯誤 :Error generating final archive: Debug certificate expired on xxxxxx(日期) 
解決辦法: 

linux:Window--》 Preferences--》Android--》Build中Default debug keystore顯示了地址“/home/jinli/.android/debug.keystore”,刪除此路徑下的debug.keystore 及 ddms.cfg

Window XP:進入:C:\Documents and Settings\Administrator\.android (Win7在C:\Users\ly\.android)
刪除:debug.keystore及 ddms.cfg

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.