android - java.lang.NoClassDefFoundError : com. 谷歌.android.gms.common.internal.zzbp

标签 android firebase google-places-api

我不能同时使用 firebase 和 places library

我也用过 multidex 但不幸的是它不正确

请帮帮我

我的毕业典礼:

`应用插件:'com.android.application'

android {
    compileSdkVersion 28
    defaultConfig {
        applicationId "ir.atipco.seb"
        minSdkVersion 16
        targetSdkVersion 28
        multiDexEnabled true
        versionCode 1
        versionName "1.0"
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
        }
    }

}

dependencies {
    implementation fileTree(include: ['*.jar'], dir: 'libs')
    implementation 'com.android.support:appcompat-v7:28.0.0'
    implementation 'com.android.support.constraint:constraint-layout:1.1.3'
    implementation 'com.android.support:design:28.0.0'
    implementation 'com.android.volley:volley:1.1.0'
    implementation 'com.android.support:recyclerview-v7:28.0.0'
    implementation('com.journeyapps:zxing-android-embedded:3.6.0') {     transitive = false }
    implementation 'com.google.zxing:core:3.3.3'
    implementation 'com.android.support:recyclerview-v7:28.0.0'
    implementation 'com.android.support:cardview-v7:28.0.0'
    implementation 'pl.droidsonroids.gif:android-gif-drawable:1.2.15'
    implementation 'com.jaredrummler:animated-svg-view:1.0.5'
    implementation 'com.andrognito.patternlockview:patternlockview:1.0.0'
    implementation 'de.hdodenhof:circleimageview:2.2.0'
    implementation 'com.squareup.picasso:picasso:2.5.2'
    implementation 'com.getkeepsafe.taptargetview:taptargetview:1.12.0'
    implementation 'com.google.android.gms:play-services-location:11.4.0'
    implementation 'com.google.android.gms:play-services-maps:11.4.0'
    implementation 'com.google.firebase:firebase-core:11.4.0'
    implementation 'com.google.firebase:firebase-messaging:11.4.0'
    implementation 'com.sothree.slidinguppanel:library:3.4.0'
    implementation "com.google.android.libraries.places:places:1.0.0"
}

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

`

和错误:

Click Here For Show Error

最佳答案

更新以下内容:

implementation 'com.google.android.gms:play-services-location:11.4.0'
implementation 'com.google.android.gms:play-services-maps:11.4.0'
implementation 'com.google.firebase:firebase-core:11.4.0'
implementation 'com.google.firebase:firebase-messaging:11.4.0'

进入这个:

implementation 'com.google.android.gms:play-services-location:16.0.0'
implementation 'com.google.android.gms:play-services-maps:16.0.0'
implementation 'com.google.firebase:firebase-core:16.0.9'
implementation 'com.google.firebase:firebase-messaging:18.0.0'

检查以下内容:

https://developers.google.com/android/guides/releases

https://firebase.google.com/support/release-notes/android

关于android - java.lang.NoClassDefFoundError : com. 谷歌.android.gms.common.internal.zzbp,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56096384/

相关文章:

javascript - Firebase:authWithPassword 后权限被拒绝;可能是因为 Firebase 规则

操作栏中的 Android 搜索按钮和搜索字段

android - 如何自定义在android中按下长/延迟按钮的时间间隔

android - 使用 Dagger2 进行内部依赖注入(inject)

android - SharedPreference 更改未反射(reflect)在我的墙纸服务中

javascript - 如何在 Firebase Web 中创建两个用户组

android - 如何使用 Android 1.5 录制音频?

node.js - 每个 then() 应该返回一个值或抛出,promise/always-return

Android google places api - createRequestFactory (GoogleHeader)

java - 选择地点或尝试返回时,Android 地点选择器显示空白屏幕