问题
I have some problems about Gson import in my project
if I dependency like this:
compile 'com.google.code.gson:gson:2.8.1'
The compile is OK,but when I run my app, it has bean crashed,such as enter image description here
I try to dump the apk and analyze it, I found there is Gson in the dex,but runtime crash.
but when I download the gson.jar and put it into libs then make the dependency like this:
compile fileTree(dir: 'libs', include: ['*.jar'])
it fully worked.
and I don't know why ? so help me.
sincerely!!!
来源:https://stackoverflow.com/questions/44851150/gson-class-not-found-when-running-android-app