我的项目构建得很好,但是当我尝试运行它时,它运行了,但是在调试器终端上出现了此错误。有人知道如何解决吗?
错误:
java.util.concurrent.ExecutionException: java.lang.NoClassDefFoundError: Failed resolution of: Lcom/google/android/gms/internal/zzcce;
build.gradle:
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation 'com.android.support:appcompat-v7:28.0.0-alpha3'
implementation 'com.android.support:design:28.0.0-alpha3'
implementation 'com.android.support.constraint:constraint-layout:1.1.2'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
implementation 'com.google.firebase:firebase-core:16.0.0'
implementation 'com.google.android.gms:play-services-maps:+'
implementation 'com.google.android.gms:play-services:+'
implementation 'com.facebook.android:facebook-android-sdk:[4,5)'
implementation 'com.google.firebase:firebase-auth:+'
implementation 'com.google.android.gms:play-services-auth:+'
答案 0 :(得分:0)
将此添加到您的项目build.gradle
:
dependencies {
classpath 'com.android.tools.build:gradle:3.1.2'
}