gradle - "java.lang.NoClassDefFoundError: com.google.android.gms.R$string error" After adding "libs/mpandroidchartlibrary-2-1-6.jar" -


ei found error after adding compile files('libs/mpandroidchartlibrary-2-1-6.jar'). work before adding mpandroidchartlibrary-2-1-6.jar

fatal exception: main process: com.pnp.papps.schoob, pid: 11781 java.lang.noclassdeffounderror: com.google.android.gms.r$string @ com.google.android.gms.measurement.zza.(unknown source) @ com.google.android.gms.measurement.zza.zzar(unknown source) @ com.google.android.gms.measurement.internal.zzn.zzij(unknown source) @ com.google.android.gms.measurement.internal.zzz.zza(unknown source) @ com.google.android.gms.measurement.internal.zzw.(unknown source) @ com.google.android.gms.measurement.internal.zzaa.zzdj(unknown source) @ com.google.android.gms.measurement.internal.zzw.zzat(unknown source) @ com.google.android.gms.measurement.appmeasurementcontentprovider.oncreate(unknown source) @ android.content.contentprovider.attachinfo(contentprovider.java:1616) @ android.content.contentprovider.attachinfo(contentprovider.java:1587) @ android.app.activitythread.installprovider(activitythread.java:4868) @ android.app.activitythread.installcontentproviders(activitythread.java:4463) @ android.app.activitythread.handlebindapplication(activitythread.java:4403) @ android.app.activitythread.access$1500(activitythread.java:138) @ android.app.activitythread$h.handlemessage(activitythread.java:1259) @ android.os.handler.dispatchmessage(handler.java:102) @ android.os.looper.loop(looper.java:136) @ android.app.activitythread.main(activitythread.java:5095) @ java.lang.reflect.method.invokenative(native method) @ java.lang.reflect.method.invoke(method.java:515) @ com.android.internal.os.zygoteinit$methodandargscaller.run(zygoteinit.java:786) @ com.android.internal.os.zygoteinit.main(zygoteinit.java:602) @ dalvik.system.nativestart.main(native method)

**

i found error after adding compile files('libs/mpandroidchartlibrary-2-1-6.jar'). work befor adding mpandroidchartlibrary-2-1-6.jar .

**

** work me..

->configuring app multidex gradle. http://developer.android.com/tools/building/multidex.html#mdex-gradle**

1)modify manifest reference multidexapplication class

       android { compilesdkversion 21 buildtoolsversion "21.1.0"      defaultconfig {          minsdkversion 14         targetsdkversion 21 multidexenabled true     } dependencies {   compile 'com.android.support:multidex:1.0.0' } 

'}'

**2) in manifest add multidexapplication class multidex support library application element.

add following line in application tag of manifest file.**

<application          android:name="android.support.multidex.multidexapplication"> 

Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

ruby on rails - Seeing duplicate requests handled with Unicorn -