Android 3.1.1 - Failed resolution of: Lcom/google/android/gms/common/internal/zzbq;

前端 未结 10 2233
忘掉有多难
忘掉有多难 2020-11-28 15:02

since I\'ve updated to Android Studio 3.1, my project is not running anymore. I have searched for a solution all over the internet with no positive results. Here\'s the erro

相关标签:
10条回答
  • 2020-11-28 15:34
    implementation 'com.google.android.gms:play-services-maps:15.0.0'
    implementation 'com.google.android.gms:play-services-auth:15.0.0'
    implementation 'com.google.android.gms:play-services-location:15.0.0'
    implementation 'com.google.android.gms:play-services:15.0.0'
    implementation 'com.google.android.gms:play-services-ads:15.0.0'
    
    This helped me.
    
    0 讨论(0)
  • 2020-11-28 15:35

    @cubycode I am also running into the same issue and I tried all solutions listed here.

    0 讨论(0)
  • That worked for me I added subprojects block as below to my project gradle file

    allprojects {
    repositories {
       //...
    }
    subprojects {
        project.configurations.all {
            resolutionStrategy.eachDependency { details ->
                if (details.requested.group == 'com.google.android.gms'
                        && !details.requested.name.contains('multidex') ) {
                    details.useVersion "+"
                }
    
                if (details.requested.group == 'com.google.firebase'
                        && !details.requested.name.contains('multidex') ) {
                    details.useVersion "+"
                }
            }
        }
    }
    }
    
    0 讨论(0)
  • 2020-11-28 15:39

    You may be using different verions of libraries.

    Important point is you may be using an external library which is using a different play services version (may be older) . Please check care fully all external libraries updates and match them all

    0 讨论(0)
提交回复
热议问题