java.lang.ClassNotFoundException: Didn't find class "stu.love.neihan.MainActivity" on path: DexPathL,mainactivity.this

來源:互聯網
上載者:User

java.lang.ClassNotFoundException: Didn't find class "stu.love.neihan.MainActivity" on path: DexPathL,mainactivity.this

java.lang.ClassNotFoundException: Didn't find class "stu.love.neihan.MainActivity" on path: DexPathList  解決方案:


今天遇到一個Bug: 

具體的bug 顯示:
10-06 22:34:43.019: E/AndroidRuntime(10813): Caused by: java.lang.ClassNotFoundException: Didn't find class "stu.love.neihan.MainActivity" on path: DexPathList[dexElements=[zip file "/data/app/stu.love.neihan-1.apk"],nativeLibraryDirectories=[/data/app-lib/stu.love.neihan-1, /vendor/lib, /system/lib]]


還有 concle  bug 顯示


我出錯的原因:是因為我使用的PullToRefresh 中的V4 包和我項目中的 v4 包 不匹配導致的bug!將 PullToReFresh 中的V4包替換 即可!


javalangClassNotFoundException: Didn't find class

啊呀是安卓啊。你這樣的情況一般分兩種原因:
1、包名+類名寫錯了,可能一個字母,可能順序顛倒
2、沒有匯入到classpath中去,沒玩過安卓,不知道怎麼看是不是真正的匯入jar包了。你看看項目裡面有沒有.classpath檔案,然後記事本開啟,看看裡面有沒有你說的那個jar包。
 
javalangClassNotFoundException: commysqljdbcDirver

你好,這個問題出現的原因是您沒有正確的配置好MySQL資料庫的驅動包。
如果您是使用工具開發,那麼請您把驅動包配置到項目的庫檔案中。
如果您沒有使用任何工具,那麼請將jar包配置到classpath中。
 

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.