Class resolved by unexpected DEX;

╄→гoц情女王★ 提交于 2019-12-05 21:35:31

The answer for this problem is that DEX find 2 versions of gson in class loader and loaded class. The solution is: only use gson in either class loader or loaded class.

There seems to be a solution to the problem on a google forum for this https://groups.google.com/forum/#!topic/android-platform/IP9BuSXgTdQ.

I had the same problem.

But now solved it. We can use the lib in both loader and loading class. I use eclipse.

In loader and loading project added jsoup.jar to libs folder and lib reference

Then we can use the same lib in both class loader and loading.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!