解決 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 |