Duplicate Class found while adding Google Photos API Dependency - android

Throwing Duplicate Class found error after adding the google photos library api dependency
'com.google.photos.library:google-photos-library-client:1.5.0'
. Tried almost every solution present in SO, but nothing works.
My Gradle (Module) File (Dependencies)
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
androidTestImplementation('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
// implementation project(':gcm')
//design
implementation 'androidx.appcompat:appcompat:1.2.0-alpha03'
implementation "com.google.android.material:material:${design_version.design}"
implementation "androidx.cardview:cardview:${design_version.card_view}"
implementation "androidx.recyclerview:recyclerview:${design_version.recycler_view}"
implementation 'com.balysv:material-ripple:1.0.2'
implementation "androidx.constraintlayout:constraintlayout:${design_version.constant_layout}"
implementation 'de.hdodenhof:circleimageview:3.0.0'
implementation 'com.makeramen:roundedimageview:2.3.0'
implementation 'se.emilsjolander:StickyScrollViewItems:1.1.0'
implementation 'androidx.multidex:multidex:2.0.1'
//image view
implementation 'com.squareup.picasso:picasso:2.71828'
//facebook integration
implementation 'com.facebook.android:account-kit-sdk:4.37.0'
//image cropper
implementation 'com.theartofdev.edmodo:android-image-cropper:2.8.+'
//chart
implementation 'com.github.PhilJay:MPAndroidChart:v3.1.0'
//glide
implementation 'com.github.bumptech.glide:glide:4.9.0'
//retrofit & square ok http & gson
implementation 'com.squareup.retrofit2:retrofit:2.5.0'
implementation 'com.squareup.retrofit2:converter-gson:2.5.0'
implementation 'com.squareup.okhttp3:logging-interceptor:3.11.0'
implementation "com.squareup.okhttp3:okhttp-urlconnection:3.0.1"
implementation 'com.squareup.retrofit2:converter-scalars:2.3.0'
implementation 'com.squareup.okhttp3:okhttp:3.12.0'
implementation 'com.google.code.gson:gson:2.8.6'
//firebase
implementation 'com.google.firebase:firebase-core:17.4.3'
implementation 'com.google.firebase:firebase-messaging:20.2.1'
implementation 'com.google.firebase:firebase-inappmessaging-display:19.0.7'
implementation 'com.google.firebase:firebase-analytics:17.4.3'
implementation 'com.google.firebase:firebase-config-ktx:19.1.4'
implementation 'com.google.firebase:firebase-database-ktx:19.3.1'
//validator
implementation 'com.github.SoumikBhatt.toaster:validator:1.2.6'
//popup
implementation 'com.github.SoumikBhatt.toaster:custompopup:1.2.6'
//proToast
implementation 'com.github.SoumikBhatt:ToastLikeAPro:1.0.1'
//Utils
implementation 'com.github.SoumikBhatt:Utills:1.0.1'
//force update
implementation 'com.github.SoumikBhatt:PushNotification:1.1.5'
//lottie
implementation 'com.airbnb.android:lottie:3.4.0'
//spotlight
implementation 'com.github.takusemba:spotlight:2.0.1'
//google photos
implementation 'com.google.photos.library:google-photos-library-client:1.5.0'
//flurry
// api 'com.flurry.android:analytics:12.0.3#aar'
implementation 'com.flurry.android:analytics:12.2.0'
implementation 'com.google.android.gms:play-services-base:17.3.0'
implementation 'com.google.android.gms:play-services-auth:18.0.0'
implementation 'com.baoyz.swipemenulistview:library:1.3.0'
implementation 'com.google.android.gms:play-services-maps:17.0.0'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.test:runner:1.2.0'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
implementation "androidx.core:core-ktx:1.1.0"
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
}
Full error :
Duplicate class com.google.api.Advice found in modules jetified-proto-google-common-protos-1.17.0.jar (com.google.api.grpc:proto-google-common-protos:1.17.0) and jetified-protolite-well-known-types-17.0.0-runtime.jar (com.google.firebase:protolite-well-known-types:17.0.0)
Duplicate class com.google.api.Advice$1 found in modules jetified-proto-google-common-protos-1.17.0.jar (com.google.api.grpc:proto-google-common-protos:1.17.0) and jetified-protolite-well-known-types-17.0.0-runtime.jar (com.google.firebase:protolite-well-known-types:17.0.0)
.
.
.
Go to the documentation to learn how to Fix dependency resolution errors.
Any kind of help will be highly appreciated. TIA

It seems like Firebase has a similar dependency. Try suppressing in one of the dependencies in your gradle
Like this underneath the dependency:
configurations.implementation.exclude(group: 'com.google.firebase', module: 'protolite-well-known-types')
It should be something similar like this.
Reference here

Related

Error: Program type already present: androidx.arch.core.internal.FastSafeIterableMap

When I integrate the unity game on my android app, so application is run on my device easily but when I build the apk I get the following error.
I want to add a unity game on my existing android application.
implementation "androidx.collection:collection:$collection_version"
implementation 'androidx.annotation:annotation:1.1.0'
// ANDROID LIBS
//noinspection GradleCompatible
//
implementation 'androidx.appcompat:appcompat:1.0.2'
implementation 'androidx.cardview:cardview:1.0.0'
implementation 'com.google.android.material:material:1.0.0'
implementation 'androidx.multidex:multidex:2.0.1'
// FACEBOOK LIB
implementation 'com.facebook.android:facebook-login:5.1.1'
// GPLUS LIB
implementation 'com.google.android.gms:play-services-auth:17.0.0'
implementation 'com.google.firebase:firebase-auth:19.1.0'
implementation ("com.firebaseui:firebase-ui-auth:4.1.0") {
exclude group: "android.arch.lifecycle"
exclude group: "com.android.support"
}
// FIREBASE LIBS
implementation 'com.google.firebase:firebase-messaging:20.0.1'
implementation 'com.google.firebase:firebase-core:17.2.1'
implementation 'com.crashlytics.sdk.android:crashlytics:2.10.1'
implementation 'com.google.firebase:firebase-perf:19.0.2'
// AWS LIBS
implementation 'com.amazonaws:aws-android-sdk-core:2.6.31'
implementation 'com.amazonaws:aws-android-sdk-s3:2.6.31'
implementation 'com.amazonaws:aws-android-sdk-ddb:2.6.31'
// WEBSERVICE LIB
implementation 'com.medy:retrofitwrapper:1.5.1'
// IMAGE LOAD LIB
implementation 'com.github.bumptech.glide:glide:4.8.0'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
annotationProcessor 'com.github.bumptech.glide:compiler:4.8.0'
// OTHER LIBS
implementation 'com.github.jineshfrancs:CaptchaImageView:1.0'
implementation 'com.github.Ibotta:Supported-Picker-Dialogs:1.0.0'
implementation 'com.tuyenmonkey:mkloader:1.4.0'
implementation 'de.hdodenhof:circleimageview:3.0.0'
implementation 'com.github.vihtarb:tooltip:0.2.0'
implementation('com.github.ozodrukh:CircularReveal:2.0.1#aar') {
transitive = true;
}
// AUTO SCROLL VIEW PAGER
implementation('cn.trinea.android.view.autoscrollviewpager:android-auto-scroll-view-pager:1.1.2') {
exclude module: 'support-v4'
}
implementation 'com.mindorks.android:prdownloader:0.5.0'
Don't
implementation 'com.google.firebase:firebase-perf:19.0.2'
implementation 'com.google.firebase:firebase-auth:19.1.0'
implementation 'com.google.firebase:firebase-messaging:20.0.1'
implementation 'com.google.firebase:firebase-core:17.2.1'
implementation ("com.firebaseui:firebase-ui-auth:4.1.0") {
exclude group: "android.arch.lifecycle"
exclude group: "com.android.support"
}
Try with
implementation 'com.google.firebase:firebase-perf:19.0.7'
implementation 'com.google.firebase:firebase-auth:19.3.1'
implementation 'com.google.firebase:firebase-core:17.4.3'
implementation 'com.google.firebase:firebase-messaging:20.2.1'
implementation 'com.firebaseui:firebase-ui-auth:6.2.0' // or 6.2.1

Duplicate class com.google.android.aidl.BaseProxy found in modules jetified-google-pay-client-api-1.0.0-runtime.jar

Code was working properly for whole day. And suddenly getting below error logs without changing any code.Duplicate dependencies are showing in app. Also tried to get tree structure of all used libraries in app.
Duplicate class com.google.android.aidl.BaseProxy found in modules jetified-google-pay-client-api-1.0.0-runtime.jar (google-pay-client-api-1.0.0.aar) and jetified-installreferrer-1.1-runtime.jar (com.android.installreferrer:installreferrer:1.1)
Duplicate class com.google.android.aidl.BaseStub found in modules jetified-google-pay-client-api-1.0.0-runtime.jar (google-pay-client-api-1.0.0.aar) and jetified-installreferrer-1.1-runtime.jar (com.android.installreferrer:installreferrer:1.1)
Duplicate class com.google.android.aidl.Codecs found in modules jetified-google-pay-client-api-1.0.0-runtime.jar (google-pay-client-api-1.0.0.aar) and jetified-installreferrer-1.1-runtime.jar (com.android.installreferrer:installreferrer:1.1)
Duplicate class com.google.android.aidl.TransactionInterceptor found in modules jetified-google-pay-client-api-1.0.0-runtime.jar (google-pay-client-api-1.0.0.aar) and jetified-installreferrer-1.1-runtime.jar (com.android.installreferrer:installreferrer:1.1)
Below are the dependencies in my app level gradle file.
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.android.support:design:28.0.0'
implementation 'com.android.support:support-v4:28.0.0'
implementation 'com.android.support:recyclerview-v7:28.0.0'
implementation 'com.android.support.constraint:constraint-layout:1.1.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.code.gson:gson:2.8.5'
implementation 'com.squareup.picasso:picasso:2.71828' //Loading Image
implementation 'com.android.volley:volley:1.1.1'
implementation 'pro.appus:zoom-splash:1.0.0'//--------------Splash Animator---------------------
implementation 'com.flaviofaria:kenburnsview:1.0.7'
implementation 'com.facebook.android:facebook-login:[5,6)' //------Facebook Integration---------
implementation 'com.google.android.gms:play-services-auth:17.0.0'
implementation 'com.chabbal:slidingdotsplash:1.0.2'
//---------------Circular ImageView------------------------
implementation 'com.mikhaellopez:circularimageview:3.2.0'
implementation 'com.github.lzyzsd:circleprogress:1.2.1'
implementation 'com.github.bumptech.glide:glide:4.9.0'
annotationProcessor 'com.github.bumptech.glide:compiler:4.9.0'
//---------------------Crop Library------------------------
implementation 'com.oginotihiro:cropview:1.0.0'
//-------------For Video Upload --------------------------
implementation 'com.squareup.retrofit2:retrofit:2.7.0'
implementation 'com.squareup.retrofit2:converter-gson:2.7.0'
// reactive
implementation 'io.reactivex.rxjava2:rxjava:2.1.10'
implementation 'io.reactivex.rxjava2:rxandroid:2.0.2'
implementation 'com.squareup.retrofit2:adapter-rxjava2:2.4.0'
implementation 'com.facebook.stetho:stetho:1.5.1'
implementation 'com.github.worker8:radiogroupplus:v1.0.1'
implementation 'com.amulyakhare:com.amulyakhare.textdrawable:1.0.1'
implementation 'androidx.viewpager2:viewpager2:1.0.0'
implementation 'me.grantland:autofittextview:0.2.+'
implementation 'pl.droidsonroids.gif:android-gif-drawable:1.2.19'
//-----PayU Money-----------
implementation 'com.payumoney.sdkui:plug-n-play:1.6.0'
implementation 'com.payumoney.core:payumoney-sdk:7.6.0'
//implementation'com.payu.custombrowser:payu-custom-browser:7.5.1'
implementation'com.payu.networking:payu-core-networking:1.1.0'
implementation'com.payu.payuanalytics:payuanalytics:1.1.1'
implementation'com.payu.upisdk:upisdk:1.0.2'
//implementation'com.payumoney.core:payumoney-sdk:7.6.0'
implementation'com.payumoney.graphics:asset-download-sdk:0.5.0'
//------CashFree--------------
implementation files ('libs/cashfreesdk-1.4-release.aar')
implementation files ("libs/google-pay-client-api-1.0.0.aar")
implementation 'com.google.android.gms:play-services-tasks:17.0.0'
implementation 'com.github.rubensousa:gravitysnaphelper:1.5'
//----------------Firebase Implementations------------------------------------------------------
implementation 'com.google.firebase:firebase-analytics:17.2.2'
implementation 'com.crashlytics.sdk.android:crashlytics:2.10.1'
implementation 'de.hdodenhof:circleimageview:3.0.1'
implementation 'com.github.smarteist:autoimageslider:1.3.2'
//----------------------Vimeo dependencies-------------------
implementation 'com.squareup.okhttp3:okhttp:3.14.4'
}
Spent almost 2 days to resolve these dependency issue, but no success. Any help will be really appreciated.
I also faced the same issue. Please find which library is using install referrer and Kindly update the library.
implementation 'com.android.installreferrer:installreferrer:1.1.1'

Type com.google.android.gms.common.internal.zzf is referenced as an > interface from

I migrated my android Application to AndroidX (From menu Refactor-> Migrate to androidX), Now When I run the application it's working fine but when I try to generate signed .apk file I am getting an error like
Type com.google.android.gms.common.internal.zzf is referenced as an interface from com.google.android.gms.internal.zzcdb.
Type com.google.android.gms.common.internal.zzf is referenced as an interface from com.google.android.gms.internal.zzii.
Type com.google.android.gms.common.internal.zzf is referenced as an interface from com.google.android.gms.internal.zzcms.
Here is the List of dependencies I am using on my application,
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:29.0.0'
implementation 'com.android.support.constraint:constraint-layout:1.1.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.android.support:support-annotations:29.0.0')
implementation "com.android.support:design:29.0.0"
implementation 'com.android.support:support-v4:29.0.0'
implementation "com.google.android.material:material:1.0.0"
implementation 'com.google.android:flexbox:0.3.2'
implementation 'com.android.support:multidex:1.0.3'
implementation 'me.relex:circleindicator:1.2.2#aar' //For view pager circle
implementation 'com.jakewharton:butterknife:10.2.0'
annotationProcessor 'com.jakewharton:butterknife-compiler:10.2.0'
implementation 'com.squareup.picasso:picasso:2.71828'
implementation 'com.github.ybq:Android-SpinKit:1.1.0'
implementation 'com.google.code.gson:gson:2.8.6'
implementation 'com.squareup.okhttp3:okhttp:4.2.2'
implementation 'com.squareup.retrofit2:converter-gson:2.6.2'
implementation('com.squareup.retrofit2:retrofit:2.6.2') {
exclude module: 'okhttp'
}
implementation project(":photoview")
implementation 'com.google.android.gms:play-services:12.0.1'
implementation 'com.google.firebase:firebase-messaging:20.0.0'
implementation 'com.crashlytics.sdk.android:crashlytics:2.10.1'
implementation 'com.google.android:flexbox:0.3.2'
implementation('com.crashlytics.sdk.android:crashlytics:2.10.1#aar') {
transitive = true;
}
}
This is likely the cause of your problem:
implementation 'com.google.android.gms:play-services:12.0.1'
In fact, this dependency is very out of date. You should actually just remove it completely and let firebase-messaging just pull in what it needs.
If you need to use any specific play-services library, you should use one of the new, more granular ones listed here:
https://developers.google.com/android/guides/releases

ERROR regarding Google Play Services library in build.gradle for Android

I am facing some issue regarding the build. I am trying to integrate the google photos api in my app. So, I added the below dependency:
implementation 'com.google.photos.library:google-photos-library-client:1.3.0'
After that, I am facing build issue due to some conflict:
ERROR: In project 'app' a resolved Google Play services library dependency depends on another at an exact version (e.g. "[1.16.
1]", but isn't being resolved to that version. Behavior exhibited by the library will be unknown.
Dependency failing: io.grpc:grpc-okhttp:1.16.1 -> io.grpc:grpc-core#[1.16.1], but grpc-core version was 1.21.0
Here I am posting all the dependencies:
dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation 'com.android.support:appcompat-v7:28.1.1'
implementation 'com.android.support:support-v4:28.1.1'
implementation 'com.android.support:design:28.0.0'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
implementation 'com.google.firebase:firebase-core:16.0.9'
implementation 'com.crashlytics.sdk.android:crashlytics:2.10.1'
implementation 'com.firebaseui:firebase-ui:4.3.2'
implementation 'com.google.firebase:firebase-messaging:18.0.0'
// implementation 'com.google.firebase:firebase-database:17.0.0'
implementation 'com.squareup.retrofit2:retrofit:2.4.0'
implementation 'com.android.volley:volley:1.1.1'
implementation 'com.ncorti:slidetoact:0.3.0'
implementation 'com.google.android.gms:play-services-location:16.0.0'
implementation 'de.hdodenhof:circleimageview:3.0.0'
implementation 'com.google.android.gms:play-services-maps:16.1.0'
implementation 'com.google.android.gms:play-services-places:16.1.0'
implementation 'com.google.android.gms:play-services-drive:16.1.0'
implementation 'com.google.android.material:material:1.0.0'
implementation 'com.amulyakhare:com.amulyakhare.textdrawable:1.0.1'
implementation 'com.mikepenz:materialdrawer:6.1.1'
implementation 'com.akexorcist:googledirectionlibrary:1.1.1'
implementation 'com.roughike:bottom-bar:2.3.1'
implementation 'com.google.api-client:google-api-client-android:1.23.0' exclude module: 'httpclient'
implementation 'org.greenrobot:eventbus:3.1.1'
implementation 'com.google.http-client:google-http-client-gson:1.23.0' exclude module: 'httpclient'
implementation 'com.google.android.gms:play-services-auth:16.0.1'
implementation 'com.google.android.gms:play-services-vision:17.0.2'
implementation 'com.google.photos.library:google-photos-library-client:1.3.0'
// JSON Parsing
implementation 'com.google.code.gson:gson:2.8.2'
implementation 'com.squareup.retrofit2:converter-gson:2.3.0'
implementation 'androidx.appcompat:appcompat:1.0.2'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
implementation 'com.github.vipulasri:timelineview:1.0.6'
implementation 'com.jakewharton:butterknife:8.8.1'
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
implementation 'com.seatgeek:placesautocomplete:0.3-SNAPSHOT'
implementation 'com.tbuonomo.andrui:viewpagerdotsindicator:2.1.2'
implementation('com.google.apis:google-api-services-drive:v3-rev136-1.25.0') {
exclude group: 'org.apache.httpcomponents'
}
implementation('android.arch.work:work-runtime:1.0.0-alpha11') {
exclude group: 'com.google.guava', module: 'listenablefuture'
}
implementation 'com.android.support:support-v4:28.0.0'
implementation 'com.google.android.gms:play-services-plus:16.0.0'
implementation 'com.android.support:design:28.0.0'
implementation 'com.android.support:support-vector-drawable:28.0.0'
implementation 'com.android.support:recyclerview-v7:28.0.0'
implementation 'com.google.apis:google-api-services-classroom:v1-rev135-1.23.0'
implementation 'com.google.android.gms:play-services-identity:16.0.0'
implementation 'com.android.support:multidex:1.0.3'
implementation 'com.robertlevonyan.view:MaterialChipView:1.2.5'
implementation 'com.google.apis:google-api-services-calendar:v3-rev305-1.23.0'
implementation 'com.aurelhubert:ahbottomnavigation:2.3.4'
implementation 'us.belka:androidtoggleswitch:1.2.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 "org.igniterealtime.smack:smack-tcp:4.1.0"
// Optional for XMPPTCPConnection
implementation "org.igniterealtime.smack:smack-android-extensions:4.1.0"
}
apply plugin: 'com.google.gms.google-services'

How do I debug D8 errors like "Type X is referenced as an interface from Y"?

Right now I have a project that has 3 modules, one app module and a streaming module that uses its own base module.
When I build this project, it always fails in the app:transformClassesWithDexBuilderForDev2Debug, and it's always this:
AbortException: Type com.google.android.gms.internal.measurements.zz<something> is referenced as an interface from com.google.android.gms.internal.measurements.zz<something else>
My app module's gradle looks like this:
...
ext {
supportLibVersion = '28.0.0';
gmsVersion = '15.0.0';
}
com.google.gms.googleservices.GoogleServicesPlugin.config.disableVersionCheck = true
dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation files('libs/libadapterinmobi.jar')
implementation project(':streaming')
implementation 'com.twitter.sdk.android:twitter-core:3.3.0'
implementation('com.crashlytics.sdk.android:crashlytics:2.9.6#aar') {
transitive = true
}
implementation('com.redbricklane.zapr:zapr-sdk:3.2.1#aar') {
transitive = true;
}
implementation 'com.redbricklane.zapr.admob:zapr-admob-adapter:2.1#aar'
implementation "com.android.support:appcompat-v7:$supportLibVersion"
implementation "com.android.support:customtabs:$supportLibVersion"
implementation "com.android.support:design:$supportLibVersion"
implementation "com.android.support:cardview-v7:$supportLibVersion"
implementation "com.android.support:recyclerview-v7:$supportLibVersion"
implementation "com.android.support:palette-v7:$supportLibVersion"
implementation "com.android.support:support-v4:$supportLibVersion"
implementation "com.google.android.gms:play-services-location:16.0.0"
implementation "com.google.android.gms:play-services-analytics:16.0.4"
implementation "com.google.android.gms:play-services-ads:17.1.2"
implementation "com.google.android.gms:play-services-auth:16.0.1"
implementation "com.google.firebase:firebase-core:16.0.8"
implementation "com.google.firebase:firebase-inappmessaging-display:17.1.1"
implementation "com.google.firebase:firebase-messaging:17.5.0"
implementation "com.google.firebase:firebase-auth:16.2.0"
implementation "com.google.firebase:firebase-database:16.1.0"
implementation "com.google.firebase:firebase-config:16.4.1"
implementation "com.google.firebase:firebase-appindexing:17.1.0"
implementation 'com.android.support:multidex:1.0.3'
implementation 'com.github.bumptech.glide:glide:4.9.0'
implementation 'com.github.bumptech.glide:annotations:4.9.0'
implementation 'com.github.bumptech.glide:volley-integration:4.2.0#aar'
annotationProcessor 'com.github.bumptech.glide:compiler:4.9.0'
implementation('com.facebook.android:facebook-android-sdk:4.30.0') {
exclude group: 'com.google'
}
implementation 'jp.co.cyberagent.android.gpuimage:gpuimage-library:1.4.1'
implementation 'com.melnykov:floatingactionbutton:1.3.0'
implementation 'com.googlecode.mp4parser:isoparser:1.1.22'
implementation 'me.relex:circleindicator:1.2.1#aar'
implementation 'com.android.volley:volley:1.1.1'
implementation 'com.squareup.okhttp3:okhttp:3.10.0'
implementation 'com.mixpanel.android:mixpanel-android:4.9.8'
implementation 'com.flurry.android:analytics:6.4.2'
implementation 'com.squareup.picasso:picasso:2.5.2'
implementation 'io.github.luizgrp.sectionedrecyclerviewadapter:sectionedrecyclerviewadapter:1.0.4'
implementation 'com.danikula:videocache:2.7.0'
implementation 'com.inmobi.monetization:inmobi-ads:7.2.1'
implementation 'commons-io:commons-io:2.5'
implementation 'com.github.livefront:bridge:v1.1.3'
implementation 'frankiesardo:icepick:3.2.0'
annotationProcessor 'frankiesardo:icepick-processor:3.2.0'
}
...
And my streaming module's gradle file looks like this:
...
androidExtensions {
experimental = true
}
com.google.gms.googleservices.GoogleServicesPlugin.config.disableVersionCheck = true
dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
//implementation files('libs/libadapterinmobi.jar')
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.android.support:recyclerview-v7:28.0.0'
implementation 'com.android.support:cardview-v7:28.0.0'
implementation 'com.android.support:support-v4:28.0.0'
implementation 'com.android.support:exifinterface:28.0.0'
implementation 'com.android.support:design:28.0.0'
implementation 'com.android.support:customtabs:28.0.0'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
implementation 'com.android.support.constraint:constraint-layout-solver:1.1.3'
implementation 'com.android.volley:volley:1.1.1'
implementation 'android.arch.lifecycle:extensions:1.1.1'
implementation 'android.arch.lifecycle:viewmodel:1.1.1'
implementation 'android.arch.lifecycle:livedata:1.1.1'
implementation 'android.arch.persistence.room:runtime:1.1.1'
implementation 'android.arch.paging:runtime:1.0.1'
implementation ("com.facebook.android:facebook-core:4.28.0") {
exclude group: 'com.google'
}
implementation('com.crashlytics.sdk.android:crashlytics:2.9.6#aar') {
transitive = true
}
//implementation 'com.google.firebase:firebase-core:16.0.8'
implementation 'com.google.firebase:firebase-invites:16.1.1'
//implementation 'com.google.firebase:firebase-messaging:17.5.0'
//implementation 'com.google.firebase:firebase-dynamic-links:16.1.8'
implementation 'com.google.android.gms:play-services-auth:16.0.1'
implementation 'com.google.android.gms:play-services-location:16.0.0'
implementation 'com.google.android.exoplayer:exoplayer:2.9.1'
implementation 'com.google.android.exoplayer:extension-rtmp:2.9.1'
implementation 'com.google.code.gson:gson:2.8.2'
implementation 'com.github.bumptech.glide:glide:4.9.0'
implementation 'com.github.bumptech.glide:okhttp3-integration:4.9.0'
implementation 'com.squareup.okhttp3:okhttp:3.10.0'
implementation 'com.squareup.picasso:picasso:2.5.2'
implementation 'com.intuit.ssp:ssp-android:1.0.5'
implementation 'com.intuit.sdp:sdp-android:1.0.5'
implementation 'com.vinaysshenoy:mugen:1.0.2'
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
implementation 'com.github.florent37:viewtooltip:1.1.6'
implementation 'com.karumi:dexter:5.0.0'
implementation 'com.android.billingclient:billing:1.2'
implementation 'me.saket:better-link-movement-method:2.2.0'
implementation 'com.makeramen:roundedimageview:2.3.0'
implementation 'com.github.yalantis:ucrop:2.2.2'
implementation 'com.robinhood.ticker:ticker:2.0.1'
implementation project(':playtrivia-base')
//implementation project(':stepbarview')
annotationProcessor "com.github.bumptech.glide:compiler:4.9.0"
annotationProcessor "android.arch.persistence.room:compiler:1.1.1"
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'
api "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
}
repositories {
maven { url "http://dl.bintray.com/amulyakhare/maven" }
maven { url "https://jitpack.io" }
mavenCentral()
}
...
Most of the posts regarding this error are found here and in github repos' issue pages, and all of them suggest excluding com.google in their gradle inclusion codes. The problem here is that I don't know which one to put that exclusion into, since I don't know which one uses com.google.android.gms.internal.measurements.<something>.
EDIT: I forgot to mention that all of the other solutions in those posts involve updating all the Firebase and play-services repos to their latest version. It doesn't work for me.
The project level androidDependencies Gradle task didn't help either (I had no hits when I searched for internal).
With all that, how do I even start debugging this?

Categories

Resources