Android Studio JRE process finished with non-zero exit value 1 - java

With these dependencies present in build.gradle.
I am getting this error when i am trying to run the project
Process 'command '/Applications/Android
Studio.app/Contents/jre/jdk/Contents/Home/bin/java'' finished with
non-zero exit value 1
/*CamerAFragment*/
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation "com.android.support:appcompat-v7:$rootProject.supportLibraryVersion"
implementation "com.android.support:cardview-v7:$rootProject.supportLibraryVersion"
implementation 'com.android.support.constraint:constraint-layout:1.0.2'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.1'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1'
//compile "com.android.support:design:$rootProject.supportLibraryVersion"
//butterknife
// implementation 'com.jakewharton:butterknife:8.8.1'
//annotationProcessor 'com.jakewharton:butterknife-compiler:8.8.1'
//circle indicator
implementation 'me.relex:circleindicator:1.2.2#aar'
//google plus
implementation 'com.google.android.gms:play-services-auth:11.0.4'
/*Viper*/
androidTestAnnotationProcessor "com.google.dagger:dagger-compiler:$rootProject.dagger2Version"
// reactive
implementation "io.reactivex.rxjava2:rxjava:$rootProject.rxjava2Version"
implementation "io.reactivex.rxjava2:rxandroid:$rootProject.rxandroidVersion"
// retrofit
implementation 'com.squareup.retrofit2:retrofit:2.3.0'
implementation 'com.squareup.retrofit2:converter-gson:2.3.0'
implementation 'com.squareup.retrofit2:adapter-rxjava2:2.3.0'
implementation 'com.squareup.okhttp3:logging-interceptor:3.4.1'
implementation 'com.squareup.okhttp3:okhttp:3.4.1'
// dependency injection
implementation "com.google.dagger:dagger:$rootProject.dagger2Version"
annotationProcessor "com.google.dagger:dagger-compiler:$rootProject.dagger2Version"
provided 'javax.annotation:jsr250-api:1.0'
implementation 'javax.inject:javax.inject:1'
//multidex
implementation 'com.android.support:multidex:1.0.3'
//new start
// kapt 'com.google.dagger:dagger-android-processor:2.15'
// kapt 'com.google.dagger:dagger-compiler:2.15'
//new end
//animationasdasd
compile 'com.skyfishjy.ripplebackground:library:1.0.1'
//DrawablePageIndicator
implementation 'com.augustopicciani.drawable_page_indicator:library:1.0'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
// AutoScrollView
implementation('cn.trinea.android.view.autoscrollviewpager:android-auto-scroll-view-pager:1.1.2') {
exclude module: 'support-v4'
}
//Cropper
implementation 'com.theartofdev.edmodo:android-image-cropper:2.4.7'
/*AWS*/
implementation 'com.amazonaws:aws-android-sdk-s3:2.6.+'
implementation 'com.amazonaws:aws-android-sdk-cognito:2.6.+'
implementation 'com.amazonaws:aws-android-sdk-core:2.6.+'
/*//glide
implementation 'com.github.bumptech.glide:glide:4.5.0'
annotationProcessor 'com.github.bumptech.glide:compiler:4.5.0'*/
//Country code
implementation 'com.hbb20:ccp:2.2.2'
// implementation 'com.hbb20:ccp:2.0.3'
//Underscore
implementation 'com.github.javadev:underscore:1.28'
//pdf opener
compile 'com.github.barteksc:android-pdf-viewer:2.8.2'
//Crash
implementation 'com.google.firebase:firebase-crash:11.0.4'
/* // Check for v11.4.2 or higher
implementation 'com.google.firebase:firebase-core:15.0.0'*/
// Add dependency
implementation 'com.crashlytics.sdk.android:crashlytics:2.9.5'
/*Custom Camera view*/
implementation project(':Cameralibrary')
/*App purchase */
implementation 'com.android.billingclient:billing:1.0'
/*OCR demo Gradle starts from here */
// implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
implementation "android.arch.lifecycle:extensions:${versions.lifecycle}"
implementation "android.arch.lifecycle:common-java8:${versions.lifecycle}"
implementation "com.getkeepsafe.relinker:relinker:${versions.relinker}"
implementation 'de.greenrobot:eventbus:2.4.0'
releaseImplementation "com.squareup.leakcanary:leakcanary-android-no-op:${versions.leak_canary}"
debugImplementation "com.squareup.leakcanary:leakcanary-android:${versions.leak_canary}"
implementation 'com.android.support:support-vector-drawable:27.1.1'
implementation "com.commit451:PhotoView:${versions.photoview}"
// implementation 'com.viewpagerindicator:library:2.4.1#aar'
implementation 'fr.avianey.com.viewpagerindicator:library:2.4.1.1#aar'
//butterknife
implementation "com.jakewharton:butterknife:${versions.butterknife}"
// kapt "com.jakewharton:butterknife-compiler:${versions.butterknife}"
annotationProcessor "com.jakewharton:butterknife-compiler:${versions.butterknife}"
//circle indicator
implementation 'me.relex:circleindicator:1.2.2#aar'
//glide
implementation 'com.github.bumptech.glide:glide:4.8.0'
annotationProcessor 'com.github.bumptech.glide:compiler:4.8.0'
implementation "com.android.support:design:${versions.design}"
implementation "com.android.support:design:${versions.appcompat_v7}"
//pdf shockwave
compile 'com.github.barteksc:pdfium-android:1.9.0'
//cat loader
implementation 'com.roger.catloadinglibrary:catloadinglibrary:1.0.4'
//shimmer text
compile 'com.romainpiel.shimmer:library:1.4.0#aar'
/*End here */
// compile("com.fasterxml.jackson.module:jackson-module-kotlin:2.9.2")
implementation 'com.google.firebase:firebase-ml-vision:18.0.1'
implementation 'com.google.firebase:firebase-ml-vision-image-label-model:17.0.2'
implementation 'com.google.firebase:firebase-ml-vision-face-model:17.0.2'
implementation 'com.google.firebase:firebase-ml-model-interpreter:16.2.3'
implementation 'com.android.support:exifinterface:28.0.0'

Your project includes too many dependencies, try remove them one by one and gradle sync until you find which one caused error.
Its a time consuming task, but should do if you can not ensure.
And you could try add this in build.gradle----android:
dexOptions {
javaMaxHeapSize "4g" //enlarge heap size value.
}

Related

How to resolve error Cannot resolve 'ListenableFuture' after adding com.google.gms:google-services:4.3.10

After adding com.google.gms:google-services below, I am getting an error that ListenableFuture cannot be found.
I'm using a method in a class in androidx.camera.lifecycle, which returns a ListenableFuture, so I'm guessing 'com.google.gms:google-services:4.3.10' and "androidx.camera:camera-view:${camerax_version}" are using conflicting versions of ListenableFuture.
How do I best resolve this?
dependencies {
implementation 'com.google.gms:google-services:4.3.10'
implementation 'androidx.appcompat:appcompat:1.4.2'
implementation 'com.google.android.material:material:1.6.1'
implementation 'com.google.mlkit:barcode-scanning:17.0.2'
def camerax_version = "1.2.0-alpha02"
implementation "androidx.camera:camera-camera2:${camerax_version}"
implementation "androidx.camera:camera-lifecycle:${camerax_version}"
implementation "androidx.camera:camera-view:${camerax_version}"
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
implementation 'androidx.navigation:navigation-fragment:2.4.2'
implementation 'androidx.navigation:navigation-ui:2.4.2'
testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
}

Duplicate class com.google.protobuf.AbstractMessageLite found in modules protobuf-java-3.15.3

I tried to add the firestore dependency and after I did this I got a error saying the following:
Caused by: java.lang.RuntimeException: Duplicate class com.google.protobuf.AbstractMessageLite found in modules protobuf-java-3.15.3 (com.google.protobuf:protobuf-java:3.15.3) and protobuf-javalite-3.19.2 (com.google.protobuf:protobuf-javalite:3.19.2)
The following code are all the dependencies I use hope someone can find the problem.
dependencies {
implementation("androidx.compose.foundation:foundation:1.2.0-alpha07")
implementation 'androidx.core:core-ktx:1.7.0'
implementation "androidx.compose.ui:ui:$compose_version"
implementation "androidx.compose.material:material:$compose_version"
implementation "androidx.compose.ui:ui-tooling-preview:$compose_version"
implementation 'androidx.lifecycle:lifecycle-runtime-ktx:2.3.1'
implementation 'androidx.activity:activity-compose:1.3.1'
testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
androidTestImplementation "androidx.compose.ui:ui-test-junit4:$compose_version"
debugImplementation "androidx.compose.ui:ui-tooling:$compose_version"
// ViewModel
implementation "androidx.lifecycle:lifecycle-viewmodel-compose:2.4.0"
// Hilt
implementation "com.google.dagger:hilt-android:2.40.5"
kapt "com.google.dagger:hilt-compiler:2.40.5"
// Room
implementation "androidx.room:room-runtime:2.4.1"
implementation "androidx.room:room-ktx:2.4.1"
kapt "androidx.room:room-compiler:2.4.1"
// Navigation
implementation "androidx.navigation:navigation-compose:2.4.0"
implementation "androidx.hilt:hilt-navigation-compose:1.0.0"
//animated navigation
implementation "androidx.navigation:navigation-compose:2.5.0-alpha04"
//implementation "com.google.accompanist:accompanist-navigation-animation:0.16.0"
//IGDB
implementation 'com.github.husnjak:IGDB-API-JVM:1.0.5'
testImplementation "androidx.arch.core:core-testing:2.1.0"
//coil
implementation("io.coil-kt:coil-compose:2.0.0-rc01")
//fuel
implementation 'com.github.kittinunf.fuel:fuel-android:2.3.1'
//system ui
implementation "com.google.accompanist:accompanist-systemuicontroller:0.17.0"
// Import the Firebase BoM
implementation platform('com.google.firebase:firebase-bom:29.3.1')
// When using the BoM, you don't specify versions in Firebase library dependencies
// Declare the dependency for the Firebase SDK for Google Analytics
implementation 'com.google.firebase:firebase-analytics-ktx'
// Declare the dependencies for any other desired Firebase products
implementation 'com.google.firebase:firebase-auth-ktx'
implementation 'com.google.firebase:firebase-firestore'
}

Duplicate class com.google.api.Advice found in modules jetified-proto-google-common-protos-2.3.2

Duplicate class com.google.api.Advice found in modules jetified-proto-google-common-protos-2.3.2 (com.google.api.grpc:proto-google-common-protos:2.3.2) and jetified-protolite-well-known-types-18.0.0-runtime (com.google.firebase:protolite-well-known-types:18.0.0)
build.gradle(:app)
dependencies {
implementation 'androidx.appcompat:appcompat:1.4.0'
implementation 'com.google.android.material:material:1.4.0'
implementation 'androidx.constraintlayout:constraintlayout:2.1.2'
implementation 'com.google.firebase:firebase-database:20.0.3'
implementation 'com.google.firebase:firebase-messaging:23.0.0'
implementation 'com.google.firebase:firebase-firestore:24.0.0'
implementation 'androidx.navigation:navigation-fragment:2.3.5'
implementation 'androidx.navigation:navigation-ui:2.3.5'
implementation 'androidx.lifecycle:lifecycle-livedata-ktx:2.4.0'
implementation 'androidx.lifecycle:lifecycle-viewmodel-ktx:2.4.0'
implementation platform('com.google.firebase:firebase-bom:29.0.3')
implementation 'com.android.support:design:31.0.0'
implementation 'com.google.firebase:firebase-admin:8.1.0'
implementation 'com.google.firebase:firebase-analytics'
implementation fileTree(dir: 'libs', include: ['*.jar'])
testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
implementation 'com.google.firebase:firebase-auth'
implementation 'androidx.annotation:annotation:1.3.0'
implementation 'androidx.lifecycle:lifecycle-extensions:2.2.0'
implementation 'androidx.vectordrawable:vectordrawable:1.1.0'
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
implementation 'io.grpc:grpc-okhttp:1.41.0'
implementation'com.google.cloud:google-cloud-language:1.76.0'
}

How to add firebase dependencies in android app?

I want to add firebase to my project, this is my dependencies:
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
implementation 'androidx.appcompat:appcompat:1.2.0'
implementation 'androidx.core:core-ktx:1.3.2'
implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
implementation 'com.google.android.material:material:1.3.0'
implementation 'de.hdodenhof:circleimageview:3.1.0'
implementation 'androidx.vectordrawable:vectordrawable:1.1.0'
implementation 'androidx.navigation:navigation-fragment:2.3.3'
implementation 'androidx.navigation:navigation-ui:2.3.3'
implementation 'androidx.lifecycle:lifecycle-extensions:2.2.0'
testImplementation 'junit:junit:4.13'
androidTestImplementation 'androidx.test.ext:junit:1.1.2'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
implementation 'com.google.android.gms:play-services-maps:17.0.0'
implementation 'androidx.navigation:navigation-fragment-ktx:2.3.3'
implementation 'androidx.navigation:navigation-ui-ktx:2.3.3'
implementation 'com.android.support:multidex:1.0.3'
implementation 'io.reactivex.rxjava2:rxjava:2.2.11'
implementation "com.jakewharton.retrofit:retrofit2-rxjava2-adapter:1.0.0"
//Retrofit
implementation "com.squareup.retrofit2:retrofit:${retrofit_version}"
implementation "com.squareup.retrofit2:converter-gson:${retrofit_version}"
implementation "com.squareup.retrofit2:adapter-rxjava2:${retrofit_version}"
//http interceptor
implementation "com.squareup.okhttp3:okhttp:${interceptor_version}"
implementation "com.squareup.okhttp3:logging-interceptor:${interceptor_version}"
// Material Dialog Library
implementation 'com.shreyaspatil:MaterialDialog:2.1'
// Material Design Library
implementation 'com.google.android.material:material:1.3.0'
// Lottie Animation Library
implementation 'com.airbnb.android:lottie:3.4.0'
// ViewModel
implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:2.3.0"
// LiveData
implementation "androidx.lifecycle:lifecycle-livedata-ktx:2.3.0"
// Saved state module for ViewModel
implementation "androidx.lifecycle:lifecycle-viewmodel-savedstate:2.3.0"
// Annotation processor
kapt "androidx.lifecycle:lifecycle-compiler:2.3.0"
implementation "androidx.room:room-runtime:2.2.6"
kapt "androidx.room:room-compiler:2.2.6"
// For Kotlin use kapt instead of annotationProcessor
// optional - Kotlin Extensions and Coroutines support for Room
implementation "androidx.room:room-ktx:2.2.6"
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:1.4.1"
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:1.4.1"
//dagger
implementation "com.google.dagger:dagger:$dagger_version"
kapt "com.google.dagger:dagger-compiler:$dagger_version"
implementation "com.squareup.retrofit2:retrofit:$retrofit_version"
implementation "com.squareup.retrofit2:converter-gson:$retrofit_version"
//http interceptor
implementation "com.squareup.okhttp3:okhttp:${interceptor_version}"
implementation "com.squareup.okhttp3:logging-interceptor:${interceptor_version}"
//Glide
implementation "com.github.bumptech.glide:glide:$glide_version"
kapt "com.github.bumptech.glide:compiler:$glide_version"
implementation 'com.google.android.material:material:1.3.0'
//Kodein Dependency Injection
implementation "org.kodein.di:kodein-di-generic-jvm:6.2.1"
implementation "org.kodein.di:kodein-di-framework-android-x:6.2.1"
implementation 'com.github.dhaval2404:imagepicker:1.7.5'
implementation 'com.github.gcacace:signature-pad:1.2.1'
// implementation 'com.google.android.gms:play-services:17.0.0'
implementation 'com.android.support:multidex:1.0.3'
implementation 'com.airbnb.android:lottie:3.4.0'
implementation 'com.github.mayuce:LottieAlertDialog:1.1'
implementation 'com.applandeo:material-calendar-view:1.7.0'
implementation 'com.applandeo:material-calendar-view:1.9.0-alpha03'
implementation 'com.applandeo:material-calendar-view:1.9.0-alpha03'
//Rx java
implementation 'io.reactivex.rxjava2:rxandroid:2.1.1'
implementation 'io.reactivex.rxjava2:rxjava:2.2.11'
//dexter
implementation 'com.karumi:dexter:6.2.2'
//Location
implementation 'com.google.android.gms:play-services-location:18.0.0'
implementation 'com.hbb20:ccp:2.4.0'
implementation 'com.github.prabhat1707:EasyWayLocation:2.0'
//Aws
implementation 'com.amazonaws:aws-android-sdk-s3:2.18.0'
implementation 'com.amazonaws:aws-android-sdk-cognito:2.18.0'
implementation 'com.amazonaws:aws-android-sdk-cognitoidentityprovider:2.18.0'
implementation 'com.github.mukeshsolanki:Google-Places-AutoComplete-EditText:0.0.8'
// implementation project(':maplibrary')
implementation 'com.google.android.libraries.places:places:2.4.0'
implementation 'org.jetbrains.anko:anko-support-v4-commons:0.10.8'
implementation 'com.intuit.sdp:sdp-android:1.0.6'
implementation 'com.intuit.ssp:ssp-android:1.0.6'
implementation 'com.google.android.gms:play-services-places:17.0.0'
implementation 'com.bitvale:lightprogress:1.0.1'
implementation 'com.github.timigod:android-chat-ui:v0.1.4'
implementation 'com.skyfishjy.ripplebackground:library:1.0.1'
implementation 'com.facebook.shimmer:shimmer:0.1.0#aar'
implementation 'com.github.bassaer:chatmessageview:2.0.1'
implementation 'com.google.android.gms:play-services-analytics:17.0.0'
// implementation 'com.google.firebase:firebase-messaging:21.0.1'
implementation platform('com.google.firebase:firebase-bom:26.5.0')
// Declare the dependencies for the Firebase Cloud Messaging and Analytics libraries
// When using the BoM, you don't specify versions in Firebase library dependencies
implementation 'com.google.firebase:firebase-messaging'
implementation 'com.google.firebase:firebase-analytics'
But when I want to add firebase I got this error:
Failed to resolve: com.google.android.gms:play-services-measurement-sdk:12.0.1
Show in Project Structure dialog
Affected Modules: app
And also I added apply plugin: 'com.google.gms.google-services' to the bottom of build.gradle in app level, and inside build.gradle project level:
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext.kotlin_version = '1.3.61'
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:4.0.2'
classpath 'com.google.gms:google-services:4.3.5'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
google()
jcenter()
maven { url "https://maven.google.com" }
maven { url "https://www.jitpack.io" }
}
subprojects {
project.configurations.all {
resolutionStrategy.eachDependency { details ->
if (details.requested.group == 'com.google.android.gms'
&& !details.requested.name.contains('multidex')) {
details.useVersion "12.0.1"
}
}
}
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
I fixed my issue by updating all packages to the latest version and remove some code from build.gradle file in app-level and project level, like below: in project-level build.gradle:
buildscript {
repositories {
google()
jcenter()
}
dependencies {
classpath "com.android.tools.build:gradle:4.0.2"
classpath 'com.google.gms:google-services:4.3.5'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.61"
}
}
allprojects {
repositories {
google()
jcenter()
maven { url "https://jitpack.io" }
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
build.gradle in app-level:
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'
apply plugin: 'kotlin-kapt'
def room_version = "2.2.5"
def lifecycle_version = "2.2.0"
def arch_version = "2.1.0"
def coroutines_version = "1.3.5"
def dagger_version = "2.27"
def retrofit_version = "2.8.1"
def interceptor_version = "4.2.1"
def glide_version = "4.11.0"
android {
compileSdkVersion 29
buildToolsVersion "29.0.0"
defaultConfig {
applicationId "com.development.allanproject"
minSdkVersion 19
targetSdkVersion 29
versionCode 1
versionName "1.0"
multiDexEnabled true
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
dataBinding {
enabled = true
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
compileOptions {
sourceCompatibility = '1.8'
targetCompatibility = '1.8'
}
packagingOptions {
exclude 'META-INF/DEPENDENCIES'
exclude 'META-INF/LICENSE'
exclude 'META-INF/LICENSE.txt'
exclude 'META-INF/license.txt'
exclude 'META-INF/NOTICE'
exclude 'META-INF/NOTICE.txt'
exclude 'META-INF/notice.txt'
exclude 'META-INF/ASL2.0'
exclude("META-INF/*.kotlin_module")
}
}
kapt {
generateStubs = true
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
implementation 'androidx.appcompat:appcompat:1.1.0'
implementation 'androidx.core:core-ktx:1.2.0'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
implementation 'com.google.android.material:material:1.0.0'
implementation 'de.hdodenhof:circleimageview:3.0.1'
implementation 'androidx.vectordrawable:vectordrawable:1.1.0'
implementation 'androidx.navigation:navigation-fragment:2.2.2'
implementation 'androidx.navigation:navigation-ui:2.2.2'
implementation 'androidx.lifecycle:lifecycle-extensions:2.2.0'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.test.ext:junit:1.1.1'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
implementation 'com.google.android.gms:play-services-maps:17.0.0'
implementation 'androidx.navigation:navigation-fragment-ktx:2.2.2'
implementation 'androidx.navigation:navigation-ui-ktx:2.2.2'
implementation 'com.android.support:multidex:1.0.3'
implementation 'io.reactivex.rxjava2:rxjava:2.2.11'
implementation "com.jakewharton.retrofit:retrofit2-rxjava2-adapter:1.0.0"
//Retrofit
implementation "com.squareup.retrofit2:retrofit:${retrofit_version}"
implementation "com.squareup.retrofit2:converter-gson:${retrofit_version}"
implementation "com.squareup.retrofit2:adapter-rxjava2:${retrofit_version}"
//http interceptor
implementation "com.squareup.okhttp3:okhttp:${interceptor_version}"
implementation "com.squareup.okhttp3:logging-interceptor:${interceptor_version}"
// Material Dialog Library
implementation 'com.shreyaspatil:MaterialDialog:2.1'
// Material Design Library
implementation 'com.google.android.material:material:1.0.0'
// Lottie Animation Library
implementation 'com.airbnb.android:lottie:3.4.0'
// ViewModel
implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:$lifecycle_version"
// LiveData
implementation "androidx.lifecycle:lifecycle-livedata-ktx:$lifecycle_version"
// Saved state module for ViewModel
implementation "androidx.lifecycle:lifecycle-viewmodel-savedstate:$lifecycle_version"
// Annotation processor
kapt "androidx.lifecycle:lifecycle-compiler:$lifecycle_version"
implementation "androidx.room:room-runtime:$room_version"
kapt "androidx.room:room-compiler:$room_version"
// For Kotlin use kapt instead of annotationProcessor
// optional - Kotlin Extensions and Coroutines support for Room
implementation "androidx.room:room-ktx:$room_version"
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:$coroutines_version"
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:$coroutines_version"
//dagger
implementation "com.google.dagger:dagger:$dagger_version"
kapt "com.google.dagger:dagger-compiler:$dagger_version"
implementation "com.squareup.retrofit2:retrofit:$retrofit_version"
implementation "com.squareup.retrofit2:converter-gson:$retrofit_version"
//http interceptor
implementation "com.squareup.okhttp3:okhttp:${interceptor_version}"
implementation "com.squareup.okhttp3:logging-interceptor:${interceptor_version}"
//Glide
implementation "com.github.bumptech.glide:glide:$glide_version"
kapt "com.github.bumptech.glide:compiler:$glide_version"
implementation 'com.google.android.material:material:1.0.0'
//Kodein Dependency Injection
implementation "org.kodein.di:kodein-di-generic-jvm:6.2.1"
implementation "org.kodein.di:kodein-di-framework-android-x:6.2.1"
implementation 'com.github.dhaval2404:imagepicker:1.7.5'
implementation 'com.github.gcacace:signature-pad:1.2.1'
implementation 'com.google.android.gms:play-services:17.0.0'
implementation 'com.android.support:multidex:1.0.3'
implementation 'com.airbnb.android:lottie:2.7.0'
implementation 'com.github.mayuce:LottieAlertDialog:1.1'
implementation 'com.applandeo:material-calendar-view:1.7.0'
implementation 'com.applandeo:material-calendar-view:1.8.0-rc01'
implementation 'com.applandeo:material-calendar-view:1.9.0-alpha03'
//Rx java
implementation 'io.reactivex.rxjava2:rxandroid:2.1.1'
implementation 'io.reactivex.rxjava2:rxjava:2.2.9'
//dexter
implementation 'com.karumi:dexter:6.2.2'
//Location
implementation 'com.google.android.gms:play-services-location:17.0.0'
implementation 'com.hbb20:ccp:2.4.0'
implementation 'com.github.prabhat1707:EasyWayLocation:2.0'
//Aws
implementation 'com.amazonaws:aws-android-sdk-s3:2.18.0'
implementation 'com.amazonaws:aws-android-sdk-cognito:2.18.0'
implementation 'com.amazonaws:aws-android-sdk-cognitoidentityprovider:2.18.0'
implementation 'com.github.mukeshsolanki:Google-Places-AutoComplete-EditText:0.0.8'
// implementation project(':maplibrary')
implementation 'com.google.android.libraries.places:places:2.2.0'
implementation 'org.jetbrains.anko:anko-support-v4-commons:0.10.8'
implementation 'com.intuit.sdp:sdp-android:1.0.6'
implementation 'com.intuit.ssp:ssp-android:1.0.6'
implementation 'com.google.android.gms:play-services-places:17.0.0'
implementation 'com.bitvale:lightprogress:1.0.1'
implementation 'com.github.timigod:android-chat-ui:v0.1.4'
implementation 'com.skyfishjy.ripplebackground:library:1.0.1'
implementation 'com.facebook.shimmer:shimmer:0.1.0#aar'
implementation 'com.github.bassaer:chatmessageview:2.0.1'
}

error: cannot access zzeuq class file for com.google.android.gms.internal.zzeuq not found please

I am facing this error in my project here is my gradle build...
Despite my research I could not solve...
I'm waiting for your help...
https://i.hizliresim.com/7B34rY.png
//noinspection GradleCompatible
implementation 'com.android.support:support-v4:26.1.0'
//noinspection GradleCompatible
implementation 'com.google.android.gms:play-services-auth:11.6.0'
implementation 'com.google.firebase:firebase-messaging:17.3.4'
implementation 'com.google.android.gms:play-services-maps:11.6.0'
implementation 'com.google.android.gms:play-services-location:11.6.0'
implementation 'com.flipboard:bottomsheet-commons:1.5.3'
implementation 'org.greenrobot:eventbus:3.0.0'
implementation 'com.ramotion.foldingcell:folding-cell:1.2.1'
implementation 'com.braintreepayments.api:drop-in:3.1.0'
implementation 'com.google.firebase:firebase-auth:16.0.5'
implementation 'com.google.firebase:firebase-core:16.0.4'
implementation 'com.google.firebase:firebase-database:16.0.4'
compile('com.facebook.android:facebook-android-sdk:4.27.0') {
exclude group: 'com.google.android.gms'
}
implementation('com.facebook.android:account-kit-sdk:4.+')
implementation 'com.github.bumptech.glide:glide:4.3.0'
annotationProcessor 'com.github.bumptech.glide:compiler:4.3.0'
implementation 'com.github.TheBrownArrow:PermissionManager:1.0.0'
implementation 'com.loopj.android:android-async-http:1.4.9'
implementation 'com.android.support:design:26.1.0'
implementation 'com.android.support:appcompat-v7:26.1.0'
implementation 'com.android.support:cardview-v7:26.1.0'
implementation 'com.github.jrvansuita:PickImage:2.1.4'
implementation 'com.github.demoNo:AutoScrollViewPager:v1.0.2'
implementation 'com.github.sujithkanna:smileyrating:1.6.8'
implementation 'com.google.code.gson:gson:2.8.1'
compile('com.crashlytics.sdk.android:crashlytics:2.6.8#aar') {
transitive = true;
}
implementation 'com.airbnb.android:lottie:2.3.0'
implementation 'com.tubb.smrv:swipemenu-recyclerview:5.4.4'
implementation 'com.yarolegovich:discrete-scrollview:1.3.2'
implementation 'com.norbsoft.typefacehelper:library:0.9.0'
implementation 'com.github.florent37:diagonallayout:1.0.7'
implementation 'com.yinglan.shadowimageview:shadowimageview:1.0.4'
implementation 'agency.tango.android:material-intro-screen:0.0.5'
I solved the solution after hours of research.
The reason for the error versions of implementation 'com.google.android.gms: play-services-maps: 11.6.0' and implementation 'com.google.android.gms: play-services-location: 11.6.0' I solved it by replacing it with 16.0.0.

Categories

Resources