Android Firebase错误,在我的项目中未使用Firebase
我正在开发Google地图应用程序我没有使用Firebase,但我得到Android Firebase错误,在我的项目中未使用Firebase,android,google-maps,firebase,Android,Google Maps,Firebase,我正在开发Google地图应用程序我没有使用Firebase,但我得到Firebase错误 我试过使用multiDexEnabled true,但没有它,它不起作用 我尝试过更新googleplay服务,但不起作用 它在Android 6.0 emulator中运行良好 它在4.4.2真实设备和4.1.1仿真器中给出错误 java.lang.NoClassDefFoundError: com.google.firebase.FirebaseOptions at com.google.fir
Firebase错误
我试过使用multiDexEnabled true
,但没有它,它不起作用
我尝试过更新googleplay服务
,但不起作用
它在Android 6.0 emulator中运行良好
它在4.4.2真实设备和4.1.1仿真器中给出错误
java.lang.NoClassDefFoundError: com.google.firebase.FirebaseOptions
at com.google.firebase.FirebaseApp.zzbu(Unknown Source)
build.gradle
apply plugin: 'com.android.application'
android {
compileSdkVersion 24
buildToolsVersion "24"
defaultConfig {
applicationId "test.navigationdrawer"
minSdkVersion 11
targetSdkVersion 24
versionCode 1
versionName "1.0"
multiDexEnabled true
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:24.0.0'
compile 'com.android.support:design:24.0.0'
compile 'com.google.android.gms:play-services:9.0.2'
}
这是我的SDK图片
apply plugin: 'com.android.application'
android {
compileSdkVersion 24
buildToolsVersion "24"
defaultConfig {
applicationId "test.navigationdrawer"
minSdkVersion 11
targetSdkVersion 24
versionCode 1
versionName "1.0"
multiDexEnabled true
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:24.0.0'
compile 'com.android.support:design:24.0.0'
compile 'com.google.android.gms:play-services:9.0.2'
}
尝试在应用程序中使用“com.google.android.gms:play services maps:9.2.0”gradle.gradleReplace编译'com.google.android.gms:play services:9.0.2',只使用您需要的库。有关选择性服务的更多信息,请参阅此可能的@AndoMasahashi Bro副本。我尝试此副本,但它不是Workign@sunilsunny兄弟,我试试看,它不起作用,试着用“com.google.android.gms:play services maps:9.2.0”在你们的app.gradleReplace中编译'com.google.android.gms:play services:9.0.2',只包含你们需要的库。有关选择性服务的更多信息,请参阅此可能的@AndoMasahashi Bro副本。我尝试此副本,但它不是Workign@sunilsunny兄弟,我试试这个它不起作用了