如何用eclipse編譯調試adnroid的Browser

來源:互聯網
上載者:User

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是相對路徑哦。

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.