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'
}
Related
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'
dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation 'com.android.support:appcompat-v7:28.0.0-rc01'
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.android.support:recyclerview-v7:28.0.0-rc01'
implementation 'com.android.support:design:28.0.0-rc01'been
}
I have error with regards to dependency in Android studio 3.1.3 for appcompat-v7:28.0.0-rc01 and even for rc02 similarly for com.android.support.constraint:constraint-layout:1.1.2 and 1.1.3 layout. how can I solve it?
dependency issues
build description
app file for build
Try using a lower version of appcompat like this:
implementation 'com.android.support:appcompat-v7:27.1.1'
Also remember to change sdkVersion to 27
I have these Dependencies so you can use any if you want and make sure to turn off the Offline Work in the Settings->Gradle to get it working.
I was searching for these errors when i came through that by disabling the Offline Work in Settings->Gradle you can get it sync without any errors.
dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
//noinspection GradleCompatible
implementation 'com.android.support:appcompat-v7:28.0.0-alpha3'
implementation 'com.android.support.constraint:constraint-layout:1.1.2'
implementation 'com.android.support:design:28.0.0-rc01'
testImplementation 'junit:junit:4.12'
// google play services
implementation 'com.google.android.gms:play-services-maps:15.0.1'
implementation 'com.google.android.gms:play-services-location:15.0.1'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
}
Regards
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'
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'
}