android studio java.lang.NoClassDefFoundError: -


i've made pretty fresh project. added in gson library google projects /libs directory , added library. added build.gradle as

compile files('libs/gson-2.2.4.jar') 

so looks ok, there aren't errors given android studio, no red underlines anywhere. can build , give shot.

but run error:

java.lang.noclassdeffounderror: com.google.gson.gson 

which can see in debugger. thing i've added in , android studio can see come build gives me these sorts of problems.

what doing wrong

had same issue. did gradle clean , build project gradle console. in build.gradle gson dependency looks this:

dependencies {     compile 'com.google.code.gson:gson:2.2.4' } 

Comments

Popular posts from this blog

How to mention the localhost in android -

php - Calling a template part from a post -

c# - String.format() DateTime With Arabic culture -