標籤:android style http io color ar os sp java
轉自http://www.eoeandroid.com/thread-272679-1-1.html
第三方jar的匯入方式
在新版本的ADT環境下,只需要在工程目錄下建立libs檔案夾(注意是libs不是lib),
然後將第三方的jar複製進去,eclipse會自動將這個jar添加到Android Dependencies檔案夾下,
不必在通過BuildPath自己去修改了,也不需要ReferenceLibrary了。
另外,如果多個工程有關聯的話,比如A工程設定為IsLibaray,B工程要引入A工程的時候,也會自動將A工程編譯產生的jar放到Android Dependencies檔案夾下。
1. Android Dependencies被誤刪除的解決辦法一:
修改classpath
正常的classpath
[mw_shl_code=java,true]
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src"/>
<classpathentry kind="src" path="gen"/>
<classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/>
<classpathentry kind="con" path="com.android.ide.eclipse.adt.LIBRARIES"/>
<classpathentry kind="output" path="bin/classes"/>
</classpath>[/mw_shl_code]
其中<classpathentry kind="con" path="com.android.ide.eclipse.adt.LIBRARIES"/>就代表了Android Dependencies,
BTW, <classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/>就是android的架構,即
如果被誤刪除了Android Dependencies, 只要把對應的classpathentry加上就可以了。
2. Android Dependencies被誤刪除的解決辦法二:
項目 右鍵 ->android tools ->Fix Project
這個方法可以同時解決Android Dependencies 和 android架構丟失的問題。
Android Dependencies被誤刪除的解決辦法