本文介紹了java.lang.NoClassDefFoundError:我該如何解決這個錯誤?的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!
問題描述
我正在開發一個使用 Osmdroid maps api 的 Android 應用程序.我已將庫作為外部 jar 添加到我的構建路徑中,并且在編譯期間我沒有收到任何錯誤.但是,在設備部署時,我收到以下錯誤:
I am developing an Android application which makes use of the Osmdroid maps api. I have added the library as an external jar in my build path and I do not get any errors during compile time. However, upon device deployment I get the following error:
03-27 16:18:50.986: E/AndroidRuntime(3306): java.lang.NoClassDefFoundError: org.osmdroid.util.GeoPoint
我做了一些谷歌搜索,這對我來說仍然是個謎.
I have done some googgling and it is still a mystery to me.
這是我的 IDE 配置.
Here is my IDE configuration.
Eclipse: Indigo Release version 2
Java SDK: 1.6.0_31
Android SDK: 17
推薦答案
您需要進入 Build Path/Order 和 Export,并檢查 SDK 17 的庫.然后清理您的項目.
You need to go into Build Path/Order and Export, and check the libs as of SDK 17. Then clean your project.
這篇關于java.lang.NoClassDefFoundError:我該如何解決這個錯誤?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!
【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!