OS 4.x versions of my application are interrupted without detecting the class .NoClassDefFoundError: com.google.android.gms.internal.zzno. It does not seem to be a problem when the phone uses later versions of Google Play Services. How to solve this build problem. Here is the magazine.
11-20 10: 03: 25.945 3018-3018 / com.something.foobar D / dalvikvm: Late CheckJNI account 11-20 10: 03: 26.089 3018-3018 / com.something.foobar W / dalvikvm: VFY: cannot be found the class the signature refers to (Lcom / google / android / gms / internal / zznl;) 11-20 10: 03: 26.089 3018-3018 / com.something.foobar W / dalvikvm: VFY: it is not possible to find the class that refers to signature (Lcom / google / android / gms / internal / zznl;) 11-20 10: 03: 26.089 3018-3018 / com.something.foobar I / dalvikvm: The com.google.android.gms.internal method could not be found. zznl.currentTimeMillis referenced by the com.google.android.gms method. measurement.internal.zzt.zzBM 11-20 10: 03: 26.089 3018-3018 / com.something.foobar W / dalvikvm: VFY: cannot resolve interface method 44251: Lcom / google / android / gms / internal / zznl; .currentTimeMillis () J 11-20 10: 03: 26.089 3018-3018 / com.something.foobar D / dalvikvm: VFY: replacing the operation code 0x72 with 0x007f 11-20 10: 03: 26.137 3018-3018 / com.something.foobar D / dalvikvm: VFY: replacing the operation code 0x71 with 0x0000 11-20 10: 03: 26.137 3018-3018 / com.something.foobar D / AndroidRuntime: shutting down the virtual machine 11-20 10: 03: 26.137 3018-3018 / com.something .foobar W / dalvikvm: threadid = 1: thread output with an uncaught exception (group = 0xa4b6c648) 11-20 10: 03: 26.141 3018-3018 / com.something.foobar E / AndroidRuntime: FATAL EXCEPTION: main java.lang.NoClassDefFoundError : com.google.an droid.gms.internal.zzno at com.google.android.gms.measurement.internal.zzx.zzj (Unknown source) at com.google.android.gms.measurement.internal.zzt. (Unknown source) at com.google.android.gms.measurement.internal.zzx.zzBQ (Unknown source) at com.google.android.gms.measurement.internal.zzt.zzaU (Unknown source) at com.google.android .gms.measurement.AppMeasurementContentProvider.onCreate (unknown source) at android.content.ContentProvider.attachInfo (ContentProvider.java:1214) at android.content.ContentProvider.attachInfo (ContentProvider.java:1189) at android.app.ActivityThread (ActivityThread.java:4879) at android.app.ActivityThread.installContentProviders (ActivityThread.java:4485) in android.app.ActivityThread.handleBindApplication (ActivityThread.java:4425) at android.app.ActivityThread.access $ 1300 (ActivityThread.java:141) at android.app .ActivityThread $ H.handleMessage (ActivityThread.java:1316) on android.os.Handler.dispatchMessage (Handler.java:99) on android.os.Looper.loop (Looper.java:137) at android.app.ActivityThread. main (ActivityThread.java∗103) in java.lang.reflect.Method.invokeNative (native method) in java.lang.reflect.Method.invoke (Method.javahaps25) at com.android.internal.os.ZygoteInit $ MethodAndArgsCaller.run (ZygoteInit.java: 737) at com.android.internal.os.ZygoteInit.main (ZygoteInit.java<53) in dalvik.system.NativeStart.main (native method) 11-20 10: 03: 28,753, 3018-3018 /? I / Process: send signal. PID: 3018 SIG: 9
I tried to compile SDkVersion / targetSdkVersion 22 and 23, but got a lot of theme-style errors.
Here is gradle build
buildscript { repositories { mavenCentral() maven { url "https://plugins.gradle.org/m2/" } maven { url 'https://maven.fabric.io/public' } } dependencies { classpath "org.codehaus.groovy:gradle-groovy-android-plugin:0.3.5" classpath 'io.fabric.tools:gradle:1.+' } } apply plugin: 'com.android.application' apply plugin: 'io.fabric' repositories { maven { url 'https://maven.fabric.io/public' } } android { signingConfigs { ... } compileSdkVersion 21 buildToolsVersion "21.1.2" defaultConfig { applicationId 'com.something.foobar' minSdkVersion 16 targetSdkVersion 21 versionCode 1402 versionName "1.4.02" multiDexEnabled = true } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } packagingOptions { exclude 'META-INF/ASL2.0' exclude 'META-INF/DEPENDENCIES.txt' exclude 'META-INF/LICENSE.txt' exclude 'META-INF/NOTICE.txt' exclude 'META-INF/NOTICE' exclude 'META-INF/LICENSE' exclude 'META-INF/DEPENDENCIES' exclude 'META-INF/notice.txt' exclude 'META-INF/license.txt' exclude 'META-INF/dependencies.txt' exclude 'META-INF/LGPL2.1' } productFlavors { developercode { minSdkVersion 16 applicationId 'com.something.foobar' targetSdkVersion 21 versionCode 1402 versionName '1.4.02' } eridesharecode { minSdkVersion 16 applicationId 'com.something.foobar' targetSdkVersion 21 versionCode 1402 versionName '1.4.02' } } dexOptions { javaMaxHeapSize "2g" } compileOptions { encoding "UTF-8" sourceCompatibility JavaVersion.VERSION_1_7 targetCompatibility JavaVersion.VERSION_1_7 } } dependencies { compile fileTree(dir: 'libs', include: ['*.jar']) compile project(':library') compile 'com.android.support:support-v4:21.0.0' compile 'com.android.support:appcompat-v7:21.0.0' compile 'com.android.support:recyclerview-v7:21.0.0' compile 'com.android.support:cardview-v7:21.0.0' compile 'com.squareup.okio:okio:1.1.0' compile 'com.squareup.okhttp:okhttp:2.2.0' compile 'com.joanzapata.android:android-iconify:1.0.6' compile 'com.tundem.aboutlibraries:library: 4.0.1@aar ' compile 'com.squareup.retrofit:retrofit:1.9.0' provided 'com.squareup.dagger:dagger:1.2.+' compile 'com.google.android.gms:play-services:+' compile 'cn.pedant.sweetalert:library:1.3' compile 'de.greenrobot:eventbus:2.1.0' compile files('libs/nineoldandroids-2.4.0.jar') provided 'com.squareup.dagger:dagger-compiler:1.2.+' compile 'com.squareup.picasso:picasso:2.5.2' compile 'com.joanzapata.mapper:simple-mapper:1.0.10' compile 'com.facebook.android:facebook-android-sdk:4.0.0' compile 'com.google.maps.android:android-maps-utils:0.3+' compile 'javax.mail:mail:1.4.7' compile('com.crashlytics.sdk.android:crashlytics: 2.5.2@aar ') { transitive = true; }
source share