최근에 내 앱에 최신 Google 애널리틱스 9.0.0을 추가했습니다. 응용 프로그램은 새로운 안드로이드 폰에서 잘 실행하지만 나이가 안드로이드 장치에서 실행하려고 할 때,이 오류 가로 질러 (그리고 난 내 응용 프로그램의 어떤 부분에서 중포 기지 인증 사용하지 않음) :FireBase 애널리틱스 9.0.0을 추가했습니다. 이전 Android 기기에서 실행할 때 오류가 발생했습니다. java.lang.NoClassDefFoundError : com.google.firebase.FirebaseOptions
05-31 11:50:33.466 5326-5326/xxxxxxxxxxxxxxx E/dalvikvm: Could not find class 'com.google.firebase.FirebaseOptions', referenced from method com.google.firebase.FirebaseApp.
05-31 11:50:33.476 5326-5326/xxxxxxxxxxxxxxx E/dalvikvm: Could not find class 'com.google.firebase.FirebaseApp$zzb', referenced from method com.google.firebase.FirebaseApp.zzaJ
다음은 내 Gradle을 파일입니다
buildscript {
repositories {
maven { url 'https://maven.fabric.io/public' }
}
dependencies {
classpath 'io.fabric.tools:gradle:1.+'
}
}
apply plugin: 'com.android.application'
apply plugin: 'io.fabric'
apply plugin: 'com.google.gms.google-services'
android {
compileSdkVersion 23
buildToolsVersion "23.0.2"
defaultConfig {
applicationId "xx.xxxxxxxxxx.xx"
minSdkVersion 16
targetSdkVersion 23
versionCode 4
versionName "1.0.3"
multiDexEnabled true
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
zipAlignEnabled true
}
}
dexOptions {
javaMaxHeapSize "4g"
}
}
repositories {
mavenCentral()
maven { url 'https://maven.fabric.io/public' }
}
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
testCompile 'junit:junit:4.12'
compile project(':volley')
compile 'com.google.android.gms:play-services-analytics:9.0.0'
compile 'com.android.support:appcompat-v7:23.4.0'
compile 'fr.avianey.com.viewpagerindicator:library:[email protected]'
compile 'com.android.support:design:23.4.0'
compile 'com.facebook.android:facebook-android-sdk:4.7.0'
compile 'com.google.android.gms:play-services:9.0.0'
compile 'com.squareup.picasso:picasso:2.5.0'
compile 'com.baoyz.swipemenulistview:library:1.3.0'
compile 'com.lorentzos.swipecards:library:[email protected]'
compile 'com.google.android.gms:play-services-ads:9.0.0'
compile 'com.google.android.gms:play-services-identity:9.0.0'
compile 'com.google.android.gms:play-services-gcm:9.0.0'
compile 'com.wang.avi:library:1.0.1'
compile 'com.nineoldandroids:library:2.4.0'
compile 'de.hdodenhof:circleimageview:2.0.0'
compile 'com.android.support:multidex:1.0.1'
compile 'me.alexrs:wave-drawable:[email protected]'
compile 'org.apache.httpcomponents:httpclient:4.5'
compile 'org.apache.httpcomponents:httpmime:4.5'
compile 'com.github.aakira:expandable-layout:[email protected]'
compile('com.crashlytics.sdk.android:crashlytics:[email protected]') {
transitive = true;
}
}
이 당신을 도울 수있는 HTTP : //stackoverflow.com/questions/37360126/getting-exception-java-lang-noclassdeffounderror-com-google-firebase-firebaseop –