I had NoClassDefFoundError: Failed resolution of: Lcom/google/android/gms/internal/zzbgl implementing Firebase authentication
I used this answer and now no activities using firebase is showing up and no error messages
app.gradle
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.google.firebase:firebase-messaging:17.4.0'
implementation 'com.google.firebase:firebase-auth:16.2.0'
implementation 'com.google.android.gms:play-services-auth:16.0.1'
implementation 'com.android.support:multidex:1.0.3'
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.android.gms:play-services:12.0.1'
}
apply plugin: 'com.google.gms.google-services'
Related
I am trying to implement crashlitics in my android app but the problem is whenever i am running the app i am getting above error .kindly help me to get it resolved .
i also added multidex enabled true and i am using following below dependencies .
plz let me know the issue .
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
//noinspection GradleCompatible
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.android.support:support-media-compat:28.0.0'
implementation 'com.android.support:design:28.0.0'
implementation 'me.dm7.barcodescanner:zxing:1.9.8'
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.github.johnkil.android-robototextview:robototextview:4.0.0'
implementation 'com.google.android.gms:play-services-ads:17.1.1'
// Check for v11.4.2 or higher
implementation 'com.google.firebase:firebase-core:17.1.0'
// (Recommended) Add Analytics
implementation 'com.google.firebase:firebase-analytics:17.1.0'
// Add dependency
implementation 'com.crashlytics.sdk.android:crashlytics:2.10.1'
Here is my code, I am follwing a tutorial on making a login for my app but when I got to this stage I get errors.
dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation 'com.android.support:appcompat-v7:28.0.0-alpha1'
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.sqaureup.retrofit2:retrofit:2.3.0'
implementation 'com.sqaureup.retrofit2:converter-gson:2.3.0'
}
Any ideas?
The spelling of square word is wrong, so change it to this:
implementation 'com.squareup.retrofit2:retrofit:2.4.0'
My project builds just fine, but when I try to run it, it runs but I get this error on the debugger terminal. Does anyone know how to fix it?
Error:
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:+'
Add this to your project build.gradle:
dependencies {
classpath 'com.android.tools.build:gradle:3.1.2'
}
there is issue in dependencies and the following error is appearing
dependencies {
implementation 'com.google.firebase:firebase-core:16.0.1'
releaseImplementation 'com.google.firebase:firebase-database:16.0.1'
implementation 'com.google.firebase:firebase-auth:16.0.2'
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation 'com.android.support:appcompat-v7:27.1.1'
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'
}
apply plugin: 'com.google.gms.google-services'
I am trying to use microsoft.projectoxford:emotion in my Android App and when I try to add dependency 'com.microsoft.projectoxford:emotion:2.0.40' in my build.gradle in shows the subject error.
dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation 'com.android.support:appcompat-v7:27.1.1'
implementation 'com.android.support.constraint:constraint-layout:1.1.0'
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.microsoft.projectoxford:emotion:2.0.40'
}