收到与Firebase相关的错误。
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.<init>(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:4825)
at android.app.ActivityThread.installContentProviders(ActivityThread.java:4420)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4360)
at android.app.ActivityThread.access$1500(ActivityThread.java:141)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1272)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5052)
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:796)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:612)
at dalvik.system.NativeStart.main(Native Method)
我不明白这是什么类型的问题
摇篮
android {
compileSdkVersion 23
buildToolsVersion "23.0.1"
compileOptions.encoding = 'ISO-8859-1'
useLibrary 'org.apache.http.legacy'
defaultConfig {
applicationId "com.xxxx.xxx"
minSdkVersion 14
targetSdkVersion 23
multiDexEnabled true
}
buildTypes {
release {
minifyEnabled true
proguardFiles 'proguard.cfg'
}
}
dexOptions {
javaMaxHeapSize "4g"
}
}
dependencies {
compile project(':library')
compile project(':wheel')
compile project(':socialauthandroid')
compile project(':ambilWarna')
compile 'com.google.android.gms:play-services:8.3.0'
compile files('libs/acra-4.5.0.jar')
compile files('libs/FlurryAgent.jar')
compile files('libs/poi-3.9.jar')
compile 'com.android.support:appcompat-v7:23.1.1'
compile files('libs/gcm.jar')
compile 'com.android.support:multidex:1.0.0'
}
任何人都可以帮助我
答案 0 :(得分:2)
<强> NoClassDefFoundError 强>
当Java虚拟机无法在运行时找到可在编译时使用的特定类时,会出现NoClassDefFoundError。
java.lang.NoClassDefFoundError: com.google.android.gms.internal.zzno
我想,您compile 'play-services:8.3.0'
部分的问题
您可以使用
compile 'com.google.android.gms:play-services:8.4.0' /or 7.8.0
然后 Clean-Rebuild-Restart-Gradle
您的项目。
混淆
什么是 compile files('libs/gcm.jar')
?它与com.google
有关吗?
您可以访问 Android: java.lang.NoClassDefFoundError 以获得更好的答案。