安卓eclipse工程導入歎號、出錯

導入時項目沒有gen目錄

解決方法:

一,將項目clean 一下。

二,項目---右鍵---android tool---fix property.

 

ADT版本不同、提示com.android.ide.eclipse.adt.DEPENDENCIES出錯

將.classpath文件修改

  1. <classpathentry kind="con" path="com.android.ide.eclipse.adt.LIBRARIES"/>  
  2. <classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.DEPENDENCIES

改成

  1. <classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.LIBRARIES"/>  

<classpathentry kind="con" path="com.android.ide.eclipse.adt.DEPENDENCIES"/>

 

工程中classpath中指向的包路徑錯誤

    解決方法:在項目名稱上點右鍵選擇Properties,然後選擇Java Bulid Path中的libraries選項,其中出現紅色x號的路徑爲錯誤路徑,刪除之後,通過Add External Jars添加正確路徑,點擊確定之後,在Package Explorer中刷新一下。

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