今天更新了universal-image-loader-1.9.5.jar文件,studio死活找不到其中相关的类,上网百度试了很多办法,总算解决了,具体方法跟一篇老外的帖子的差不多,这里分享下。

 

解决步骤:

Something went wrong in incremental build system. One of this should help:

  1. Menu Build -> Rebuild project
  2. Delete folder /build
  3. Close Android Studio, delete /build folder
  4. 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')

相关文章:

  • 2021-10-23
  • 2022-01-29
  • 2022-03-07
  • 2021-04-26
  • 2021-10-26
  • 2022-01-01
  • 2021-10-18
  • 2021-10-24
猜你喜欢
  • 2021-08-14
  • 2022-01-16
相关资源
相似解决方案