当前位置:  开发笔记 > 编程语言 > 正文

Android)java.lang.NoClassDefFoundError:com.google.android.gms.internal.zzno

如何解决《Android)java.lang.NoClassDefFoundError:com.google.android.gms.internal.zzno》经验,为你挑选了0个好方法。

我一次又一次地修复,但我遇到的最后一个错误是:

java.lang.NoClassDefFoundError: com.google.android.gms.internal.zzno

我的build.gradle如下:

buildscript {
repositories {
    jcenter()
}
dependencies {
    classpath 'com.android.tools.build:gradle:1.3.0'
    classpath 'com.google.gms:google-services:1.5.0-beta2'

    // NOTE: Do not place your application dependencies here; they belong
    // in the individual module build.gradle files
}
}

allprojects {
    repositories {
        jcenter()
    }
}

subprojects {
    repositories {
        mavenCentral()
        maven { url 'http://devrepo.kakao.com:8088/nexus/content/groups/public/' }
    }
}

另一个build.gradle如下:

    apply plugin: 'com.android.application'
    apply plugin: 'com.google.gms.google-services'

android {
    compileSdkVersion 23
    buildToolsVersion "23.0.1"

dexOptions {
    javaMaxHeapSize "4g"
}

defaultConfig {
    applicationId "com.example.min.photozzle"
    minSdkVersion 17
    targetSdkVersion 23
    versionCode 1
    versionName "1.0"
    multiDexEnabled true
}
buildTypes {
    release {
        minifyEnabled false
        proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
    }
}
packagingOptions {
    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'
    }
}

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    compile 'com.android.support:appcompat-v7:23.0.1'
    compile 'com.android.support:multidex:1.0.1'

    compile group: 'com.kakao.sdk', name: 'kakaolink', version: '1.1.0'
    compile group: 'com.kakao.sdk', name: 'kakaostory', version: '1.1.0'// ?????? sdk? ???? ?? ??.
    compile group: 'com.kakao.sdk', name: 'kakaotalk', version: '1.1.0'    // ???? sdk? ???? ?? ??.
    compile group: 'com.kakao.sdk', name: 'push', version: '1.1.0'    // push sdk? ???? ?? ??.

    compile 'com.squareup.retrofit:retrofit:1.9.0'
    //compile 'com.google.android.gms:play-services-gcm:8.3.0'
    compile "com.google.android.gms:play-services:8.3.0"
    compile 'org.apache.directory.studio:org.apache.commons.io:2.4'

}

Fianlly我的清单如下:














    

    
    
    
    
    
        
            

            
        
    

    
        

            
            

            
            

            

        
    

    
    

    
        
            
        
    

    
        
            
        
    


    

我们的错误日志如下:

12-08 20:16:32.306  19305-19305/? E/dalvikvm? Could not find class 'com.google.android.gms.internal.zzqq$zzd', referenced from method com.google.android.gms.measurement.internal.zzt.zzBK
12-08 20:16:32.306  19305-19305/? E/dalvikvm? Could not find class 'com.google.android.gms.internal.zzqq$zzd', referenced from method com.google.android.gms.measurement.internal.zzt.zzBK
12-08 20:16:32.311  19305-19305/? E/dalvikvm? Could not find class 'com.google.android.gms.internal.zzqq$zzc', referenced from method com.google.android.gms.measurement.internal.zzt.zzBK
12-08 20:16:32.311  19305-19305/? E/dalvikvm? Could not find class 'com.google.android.gms.internal.zzqq$zzd', referenced from method com.google.android.gms.measurement.internal.zzt.zza
12-08 20:16:32.381  19305-19305/? E/AndroidRuntime? FATAL EXCEPTION: main
    Process: com.example.min.photozzle, PID: 19305
    java.lang.NoClassDefFoundError: com.google.android.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:1591)
            at android.content.ContentProvider.attachInfo(ContentProvider.java:1562)
            at android.app.ActivityThread.installProvider(ActivityThread.java:5233)
            at android.app.ActivityThread.installContentProviders(ActivityThread.java:4828)
            at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4711)
            at android.app.ActivityThread.access$1600(ActivityThread.java:175)
            at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1368)
            at android.os.Handler.dispatchMessage(Handler.java:102)
            at android.os.Looper.loop(Looper.java:146)
            at android.app.ActivityThread.main(ActivityThread.java:5602)
            at java.lang.reflect.Method.invokeNative(Native Method)
            at java.lang.reflect.Method.invoke(Method.java:515)
            at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1283)
            at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1099)
            at dalvik.system.NativeStart.main(Native Method)

我用谷歌搜索了一个小时并介绍了它,但这对我来说效果不佳.我正在尝试将GCM用于我的应用程序.

推荐阅读
小色米虫_524
这个屌丝很懒,什么也没留下!
DevBox开发工具箱 | 专业的在线开发工具网站    京公网安备 11010802040832号  |  京ICP备19059560号-6
Copyright © 1998 - 2020 DevBox.CN. All Rights Reserved devBox.cn 开发工具箱 版权所有