今天更新了universal-image-loader-1.9.5.jar文件,studio死活找不到其中相關的類,上網百度試了很多辦法,總算解決了,具體方法跟一篇老外的帖子的差不多,這里分享下。
解決步驟:
Something went wrong in incremental build system. One of this should help:
- Menu Build -> Rebuild project
- Delete folder /build
- Close Android Studio, delete /build folder
- Right click on your project -> "Open module settings" -> Dependencies tab -> check if Export is checked for your library
來自老外的帖子http://stackoverflow.com/questions/17724642/android-studio-java-lang-noclassdeffounderror
參考文章:http://www.oschina.net/question/2263525_180149
這個問題經常發生在build.gradle如下配置的時候:
compile fileTree(dir: 'libs', include: ['*.jar'])
如果實在解決不了,就在build.gradle里面加上比如下面的引用,studio可能有時候發現不了jar包,加上下面的代碼就能騙過studio了,bulid成功后刪除就好了。
compile files('libs/umeng_social_sdk.jar')
