I just turned on ProGuard on my build and now I'm getting a java.lang.ClassNotFoundException: Didn't find class "com.google.android.gms.chimera.GmsModuleInitializer" on path: DexPathList[[zip file "/system/app/PlayGames.apk"],nativeLibraryDirectories=[/vendor/lib, /system/lib]]
If I understand from the docs all that I need to use Proguard with Play Services should be included by the Android Gradle plugin: *Note: ProGuard directives are included in the Play services client libraries to preserve the required classes. The Android Plugin for Gradle <https://developer.android.com/tools/building/plugin-for-gradle.html> automatically appends ProGuard configuration files in an AAR (Android ARchive) package and appends that package to your ProGuard configuration. During project creation, Android Studio automatically creates the ProGuard configuration files and build.gradle properties for ProGuard use. To use ProGuard with Android Studio, you must enable the ProGuard setting in your build.gradle buildTypes. For more information, see the ProGuard <https://developer.android.com/tools/help/proguard.html> guide.* This the important part of my app module build.gradle file: apply plugin: 'com.android.application' android { compileSdkVersion 23 buildToolsVersion "23.0.3" defaultConfig { ... } ... buildTypes { release { signingConfig signingConfigs.releaseConfig minifyEnabled true proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } qa { signingConfig signingConfigs.releaseConfig minifyEnabled true proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } debug { applicationIdSuffix ".debug" minifyEnabled true proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } } dependencies { ... //google play services compile 'com.google.android.gms:play-services-gcm:8.4.0' compile 'com.google.android.gms:play-services-analytics:8.4.0' compile 'com.google.android.gms:play-services-location:8.4.0' } This is my top level build.gradle file: // Top-level build file where you can add configuration options common to all sub-projects/modules. buildscript { repositories { jcenter() mavenCentral() } dependencies { classpath 'com.android.tools.build:gradle:2.1.2' } } allprojects { repositories { jcenter() mavenCentral() } } What am I missing? -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. To post to this group, send email to android-developers@googlegroups.com. Visit this group at https://groups.google.com/group/android-developers. To view this discussion on the web visit https://groups.google.com/d/msgid/android-developers/5a7dbbf9-602a-43a3-ac6a-cfa9b7d1fecb%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.