導入時項目沒有gen目錄
解決方法:
一,將項目clean 一下。
二,項目---右鍵---android tool---fix property.
ADT版本不同、提示com.android.ide.eclipse.adt.DEPENDENCIES出錯
將.classpath文件修改
- <classpathentry kind="con" path="com.android.ide.eclipse.adt.LIBRARIES"/>
- <classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.DEPENDENCIES
改成
- <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中刷新一下。