http://abomby.blog.sohu.com/166121477.html
用eclipse調試android應用有自動提示錯誤、修正函數、提供import資訊、單步調試等優點,而android下的瀏覽器browser為內建應用程式,導致預設情況下有許多找不到符號的錯誤。
通過以下步驟可以解決eclipse不能調試browser應用的問題。
1. eclipse下通過原始碼方式匯入Android項目Browser;
2. 菜單Project-->Properties-->Java Build Path-->Libraries-->Add Library...-->User Library-->User Libraries...-->New...添加新的System library.
3. 返回上一介面,選上新加的library
4. 菜單Project-->Properties-->Java Build Path-->Order and Export.
選上步驟2添加的library,並通過Up按鈕移到列表最上面;
5. 菜單Project-->Properties-->Java Build Path-->Libraries-->選中添加的Library-->Edit-->User Libraries...-->Add JARS...添加out/target/common/obj/JAVA_LIBRARIES/framework_intermediates目錄下classes.jar和out/target/common/obj/JAVA_LIBRARIES/android-common_intermediates/classes.jar;
6. 在命令下編譯一遍Browser應用
7. 菜單Project-->Properties-->Java Build Path-->Source-->Link Source...
在對話方塊中
Linked folder location:輸入(Browse...)"out/target/common/obj/APPS/Browser_intermediates/src/src"
Folder name:輸入"src2",當然也可以是其它,只要不重名即可。
萬事打劫啦^_^,注意一下out是相對路徑哦。