Android 11 GooglePlayServicesUtilLight crash - android

The app starts crashing on Android 11 devices(100% background)
Status
Message: "The meta-data tag in your app's AndroidManifest.xml does not have the right value. Expected 12451000 but found 4323000".
I have already defined the correct value inside the manifest file as follows:
<meta-data
android:name="com.google.android.gms.version"
android:value="#integer/google_play_services_version" />
I tried to use tools:replace="android:value" and dependency updates.
implementation 'androidx.appcompat:appcompat:1.2.0'
implementation 'com.viewpagerindicator:library:2.4.1#aar'
implementation 'com.jakewharton:butterknife:10.2.3'
implementation 'androidx.lifecycle:lifecycle-extensions:2.2.0'
implementation 'androidx.navigation:navigation-fragment:2.3.2'
implementation 'androidx.navigation:navigation-ui:2.3.2'
annotationProcessor 'com.jakewharton:butterknife-compiler:10.2.3'
implementation 'com.squareup.picasso:picasso:2.71828'
implementation 'com.github.bumptech.glide:glide:4.11.0'
annotationProcessor 'com.github.bumptech.glide:compiler:4.11.0'
implementation 'com.squareup.retrofit2:retrofit:2.9.0'
implementation 'com.squareup.retrofit2:converter-gson:2.9.0'
implementation 'com.squareup.okhttp3:okhttp:4.9.0'
implementation 'com.squareup.okhttp3:okhttp-urlconnection:4.9.0'
implementation 'com.squareup.okhttp3:logging-interceptor:4.9.0'
implementation(name: 'ALIBDateTimePicker-release', ext: 'aar')
implementation(name: 'ALIBFancyCoverFlow-release', ext: 'aar')
implementation(name: 'ALIBParalloid-release', ext: 'aar')
implementation(name: 'ALIBParalloidViews-release', ext: 'aar')
implementation(name: 'ALIBTiltEffect-release', ext: 'aar')
implementation files('libs/commons-lang3_3.3.2_shrinked.jar')
implementation files('libs/android-viewbadger.jar')
implementation files('libs/GoogleConversionTrackingSdk-2.2.4.jar')
implementation 'org.apmem.tools:layouts:1.10#aar'
implementation 'androidx.core:core-ktx:1.3.2'
implementation 'org.scribe:scribe:1.3.7'
implementation 'com.google.android.libraries.places:places:2.4.0'
implementation "com.google.firebase:firebase-appindexing:19.1.0"
implementation 'com.google.android.gms:play-services-safetynet:17.0.0'
runtimeOnly 'com.google.code.gson:gson:2.8.6'
implementation 'net.danlew:android.joda:2.10.9'
implementation ('com.facebook.android:facebook-android-sdk:8.2.0') {
exclude group: 'org.jetbrains', module: 'annotations'
}
implementation 'com.googlecode.libphonenumber:libphonenumber:8.12.16'
implementation 'frankiesardo:icepick:3.2.0'
annotationProcessor 'frankiesardo:icepick-processor:3.2.0'
androidTestImplementation('androidx.test.espresso:espresso-contrib:3.3.0') {
exclude module: 'support-annotations'
exclude module: 'recyclerview-v7'
}
androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
androidTestImplementation 'com.android.support.test:testing-support-lib:0.1'
testImplementation 'org.robolectric:robolectric:4.4'
testImplementation 'junit:junit:4.13.1'
testImplementation 'org.mockito:mockito-core:3.7.0'
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
androidTestImplementation 'androidx.legacy:legacy-support-v4:1.0.0'
implementation 'com.google.android.material:material:1.2.1'
implementation 'io.reactivex.rxjava2:rxandroid:2.1.1'
implementation 'io.reactivex.rxjava2:rxjava:2.2.20'
implementation 'jp.wasabeef:recyclerview-animators:2.2.7'
implementation 'androidx.cardview:cardview:1.0.0'
implementation 'javax.annotation:jsr250-api:1.0'
implementation 'com.google.dagger:dagger:2.27'
annotationProcessor 'com.google.dagger:dagger-compiler:2.16'
annotationProcessor "com.google.dagger:dagger-android-processor:2.16"
implementation "com.google.dagger:dagger-android-support:2.16"
implementation 'com.vimeo.stag:stag-library:2.6.0'
annotationProcessor 'com.vimeo.stag:stag-library-compiler:2.6.0'
implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
implementation 'com.xwray:groupie:2.0.3'
implementation('net.opacapp:multiline-collapsingtoolbar:1.5.0') {
exclude group: 'com.android.support'
}
implementation 'com.pusher:pusher-java-client:1.5.0'
implementation "com.google.android.gms:play-services-maps:17.0.0"
implementation 'com.jakewharton.rxbinding2:rxbinding:2.2.0'
implementation 'com.jakewharton.rxbinding2:rxbinding-support-v4:2.2.0'
implementation 'com.jakewharton.rxbinding2:rxbinding-appcompat-v7:2.2.0'
implementation 'com.jakewharton.rxbinding2:rxbinding-design:2.2.0'
implementation 'com.jakewharton.rxbinding2:rxbinding-recyclerview-v7:2.2.0'
implementation "com.google.android.gms:play-services-auth:19.0.0"
implementation 'com.appsflyer:af-android-sdk:4+#aar'
implementation 'com.android.installreferrer:installreferrer:2.2'
implementation 'com.mixpanel.android:mixpanel-android:5.8.5'
implementation 'com.annimon:stream:1.2.1'
implementation "android.arch.navigation:navigation-fragment:1.0.0"
implementation "android.arch.navigation:navigation-ui:1.0.0"
implementation "android.arch.lifecycle:extensions:1.1.1"
implementation "android.arch.lifecycle:viewmodel:1.1.1"
implementation 'com.squareup.retrofit2:adapter-rxjava2:2.9.0'
implementation ('com.salesforce.service:chat-ui:4.1.2') {
exclude group: 'org.jetbrains', module: 'annotations'
}
implementation 'com.forter.mobile:fortersdk:2.4.6#aar'
releaseImplementation "com.google.firebase:firebase-analytics:18.0.0"
releaseImplementation "com.google.firebase:firebase-crashlytics:17.3.0"
releaseImplementation "com.google.android.gms:play-services-analytics:17.0.0"
implementation('com.onesignal:OneSignal:4.1.0') {
exclude group: 'com.google.android.gms'
}
implementation 'com.google.android.gms:play-services-location:17.1.0'
// Firebase for OneSignal (crash on first launch without this)
implementation "com.google.firebase:firebase-messaging:21.0.1"
implementation 'com.facebook.shimmer:shimmer:0.5.0'
implementation 'com.google.maps.android:android-maps-utils:2.2.0'
implementation 'com.braintreepayments.api:braintree:3.15.0'
implementation 'io.card:android-sdk:5.5.1'
implementation 'org.jetbrains:annotations-java5:16.0.2'

The crash disappeared after deleting the proguard.

Related

Error inflating class androidx.appcompat.widget.FitWindowsLinearLayout in Android 10

I opened an old Android project and I fixed most of the errors and right now I have just one which appears only on Android 10 devices:
java.lang.RuntimeException: Unable to start activity ComponentInfo{}: android.view.InflateException: Binary XML file line #17 in :layout/abc_screen_simple: Binary XML file line #17 in :layout/abc_screen_simple: Error inflating class androidx.appcompat.widget.FitWindowsLinearLayout
I found some tips about upgrading calligraphy and viewpump, but these dependencies are not included in my project and adding them does not solve the problem either.
Here are my dependencies:
implementation 'androidx.appcompat:appcompat:1.3.0-alpha01'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
implementation 'androidx.preference:preference:1.1.1'
implementation 'com.google.android.material:material:1.2.0'
implementation 'androidx.recyclerview:recyclerview:1.1.0'
implementation 'com.squareup.retrofit2:retrofit:2.9.0'
implementation 'androidx.legacy:legacy-support-v13:1.0.0'
implementation 'com.google.firebase:firebase-core:17.4.4'
implementation 'com.google.firebase:firebase-messaging:20.2.4'
implementation 'androidx.multidex:multidex:2.0.1'
implementation('com.squareup.retrofit2:converter-simplexml:2.9.0') {
exclude module: 'stax-api'
}
implementation 'com.google.android.gms:play-services-location:17.0.0'
implementation 'com.google.android.gms:play-services-places:17.0.0'
implementation('org.simpleframework:simple-xml:2.7.1') {
exclude module: 'stax-api'
}
implementation 'com.github.PhilJay:MPAndroidChart:v3.0.3'
implementation 'com.bpodgursky:jbool_expressions:1.14'
implementation 'com.jakewharton:butterknife:10.2.2'
annotationProcessor 'com.jakewharton:butterknife-compiler:10.2.2'
implementation 'com.opencsv:opencsv:4.0'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.test.ext:junit:1.1.1'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
implementation 'androidx.cardview:cardview:1.0.0'
implementation 'com.github.aakira:expandable-layout:1.4.2#aar+'
implementation 'com.google.code.gson:gson:2.8.5'
implementation 'com.github.bmarrdev:android-DecoView-charting:v1.2'
implementation 'com.squareup.retrofit2:converter-gson:2.9.0'
implementation('com.foursquare:foursquare-android-oauth:1.0.3') {
exclude group: 'com.google.android'
}
implementation group: 'com.squareup.okhttp3', name: 'logging-interceptor', version: '4.8.1'
implementation group: 'com.github.ganfra', name: 'material-spinner', version: '2.0.0'
implementation 'com.evernote:android-job:1.2.4'
implementation 'com.github.bmarrdev:android-DecoView-charting:v1.2'
implementation 'com.xw.repo:bubbleseekbar:3.15-lite'
implementation 'pl.edu.wat.wcy.iqpharma:shared:1.62'
implementation 'net.cachapa.expandablelayout:expandablelayout:2.9.2'
implementation group: 'com.github.ozodrukh', name: 'CircularReveal', version: '2.0.1'
implementation group: 'com.mikepenz', name: 'iconics-core', version: '3.2.1'
implementation group: 'com.mikepenz', name: 'material-design-iconic-typeface', version: '2.2.0.5'
implementation group: 'com.mikepenz', name: 'fontawesome-typeface', version: '5.3.1.1'
implementation 'com.rengwuxian.materialedittext:library:2.1.4'
implementation 'com.andrognito.pinlockview:pinlockview:2.1.0'
implementation 'io.github.inflationx:calligraphy3:3.1.1'
implementation 'io.github.inflationx:viewpump:2.0.3'
I found the answer to the problem. I was using font awesome (com.mikepenz) and that is why it did not work:
IconicsContextWrapper.wrap(newBase)

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

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?

error: package rx.android.schedulers does not exist after changing compilesdk

Hi I updated my gradle and android studio and since then I started getting build errors.
Once I changed compileSdkVersionto 28, I started getting error: package rx.android.schedulers does not exist
I also get this error in my build as shown in the pic bellow
Here are my dependencies from build.gradle
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation fileTree(dir: "$buildDir/native-libs", include: 'native-libs.jar')
implementation 'com.android.support:multidex:1.0.2'
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.jenzz.appstate:appstate:3.0.1'
implementation 'com.jenzz.appstate:adapter-rxjava2:3.0.1'
implementation 'com.android.support:design:28.0.0'
implementation 'com.android.support:cardview-v7:28.0.0'
implementation 'com.android.support:recyclerview-v7:28.0.0'
implementation group: 'joda-time', name: 'joda-time', version: '2.3'
implementation 'com.mikhaellopez:circularprogressbar:1.1.1'
implementation 'io.realm:android-adapters:2.0.0'
implementation 'com.jakewharton.rxbinding2:rxbinding-recyclerview-v7:2.0.0'
implementation 'com.github.arimorty:floatingsearchview:2.1.1'
implementation 'uk.co.chrisjenx:calligraphy:2.3.0'
implementation 'com.laimiux.rxnetwork:rxnetwork:0.0.4'
// implementation 'org.opencv:opencv-android:2.4.8'
// implementation group: 'com.github.andrejlukasevic', name: 'document-scanner', version: '4.0.0'
// implementation 'com.mlsdev.rximagepicker:library:2.0.2'
implementation 'com.google.firebase:firebase-messaging:15.0.0'
debugImplementation 'com.21buttons:fragment-test-rule:1.0.0'
//Retrofit, RxJava and OkHttp,Gson,Dagger,ButterKnife.
implementation 'com.squareup.retrofit2:retrofit:2.1.0'
implementation 'com.squareup.retrofit2:converter-gson:2.1.0'
implementation 'com.squareup.retrofit2:adapter-rxjava:2.1.0'
implementation 'frankiesardo:icepick:3.1.0'
annotationProcessor 'frankiesardo:icepick-processor:3.1.0'
implementation group: 'com.squareup.retrofit2', name: 'adapter-rxjava2', version: '2.2.0'
implementation 'io.michaelrocks:libphonenumber-android:8.9.0'
implementation ('com.google.dagger:dagger:2.0.2'){
exclude group: 'com.google.guava'
}
annotationProcessor ('com.google.dagger:dagger-compiler:2.0.2'){
exclude group: 'com.google.guava'
}
implementation 'com.jakewharton:butterknife:8.8.1'
annotationProcessor 'com.jakewharton:butterknife-compiler:8.8.1'
compileOnly 'javax.annotation:jsr250-api:1.0'
implementation 'com.android.support:support-annotations:24.2.0'
implementation 'com.jakewharton.rxrelay2:rxrelay:2.0.0'
implementation 'com.jakewharton.rxrelay:rxrelay:1.1.0'
implementation 'com.futuremind.recyclerfastscroll:fastscroll:0.2.5'
implementation group: 'io.reactivex.rxjava2', name: 'rxandroid', version: '2.0.1'
implementation group: 'org.apache.commons', name: 'commons-lang3', version: '3.0'
implementation 'com.jakewharton.timber:timber:4.5.1'
implementation 'com.google.code.gson:gson:2.5'
implementation 'com.squareup.retrofit2:retrofit-mock:2.1.0'
implementation 'com.github.bumptech.glide:glide:3.7.0'
implementation 'com.github.fafaldo:fab-toolbar:1.2.0'
implementation 'com.instabug.library:instabug:8.1.1'
implementation 'com.wdullaer:materialdatetimepicker:3.5.2'
implementation 'com.android.support.constraint:constraint-layout:1.0.2'
implementation 'net.hockeyapp.android:HockeySDK:4.1.5'
implementation 'com.jakewharton.rxbinding2:rxbinding-appcompat-v7:2.0.0'
implementation 'com.tbruyelle.rxpermissions2:rxpermissions:0.9.4#aar'
implementation group: 'com.joooonho', name: 'selectableroundedimageview', version: '1.0.1'
implementation 'com.mixpanel.android:mixpanel-android:5.+'
debugImplementation 'com.squareup.leakcanary:leakcanary-android:1.5'
//releaseImplementation 'com.squareup.leakcanary:leakcanary-android-no-op:1.5'
testImplementation 'com.squareup.leakcanary:leakcanary-android-no-op:1.5'
testImplementation 'junit:junit:4.12'
testImplementation 'org.mockito:mockito-core:1.9.5'
testImplementation 'com.google.dexmaker:dexmaker:1.1'
testImplementation 'org.powermock:powermock-api-mockito:1.6.4'
testImplementation 'org.powermock:powermock-module-junit4:1.6.4'
testImplementation 'org.powermock:powermock-core:1.6.4'
testImplementation 'org.powermock:powermock-module-junit4-rule:1.5.4'
testImplementation 'org.powermock:powermock-classloading-base:1.6.4'
testImplementation 'org.powermock:powermock-classloading-xstream:1.5.4'
testImplementation 'org.powermock:powermock-module-testng:1.6.4'
testImplementation 'com.squareup.retrofit2:retrofit:2.1.0'
testImplementation 'com.squareup.retrofit2:converter-gson:2.1.0'
}
my java file where I am getting the error
import rx.android.schedulers.AndroidSchedulers;
#Override
protected void onResume() {
super.onResume();
DoPayApplication.updateIsAppLive(Boolean.TRUE);
publishRelay.call(StartStopAppMonitor.START_STOP_APP_MONITOR);
compositeSubscription.add(publishRelay.asObservable().observeOn(AndroidSchedulers.mainThread()).subscribe(iView -> {
I changed the import to use
import io.reactivex.android.schedulers.AndroidSchedulers;
That gave me this error
When i was with compileSdkVersion 26 it did not give me this error with respect to rxAndroid/rxJava.
This started after changing compileSdkVersion to 28
I am really confused, could you please shed some light on how to fix this.
Thanks
R
first of all, when you start using API 28, you need to start migrating to AndroidX
for example, change: implementation 'com.android.support:appcompat-v7:28.0.0'
to: implementation 'androidx.appcompat:appcompat:1.0.0' and i think your first error gets fixed.
this solved my issues
implementation 'io.reactivex:rxjava:1.0.12'

Categories

Resources