Friday, May 20, 2016

java.lang.NoClassDefFoundError: com.google.android.gms.R$string

java.lang.NoClassDefFoundError: com.google.android.gms.R$string

Include in your build.gradle dependencies this:
compile 'com.android.support:multidex:1.0.0'


 your Manifest add MultiDexApplication class
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.example.android.multidex.myapplication">
    <application
        ...
        android:name="android.support.multidex.MultiDexApplication">
        ...
    </application>
</manifest>


If you already have your application class just extend it with MultiDexApplication class



Check out this may be help you

Related Posts Plugin for WordPress, Blogger...