I can't update
com.google.firebase:firebase-messaging:11.0.4
to
com.google.firebase:firebase-messaging:17.3.3
11.0.4 is working fine. classpath 'com.google.gms:google-services:4.1.0' is also added in my dependencies.
My Gradle code
dependencies {
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
implementation fileTree(include: ['*.jar'], dir: 'libs')
testImplementation 'junit:junit:4.12'
implementation files('libs/volley.jar')
implementation 'jp.wasabeef:recyclerview-animators:2.2.6'
implementation 'com.android.support:appcompat-v7:27.1.1'
implementation 'com.android.support:design:27.1.1'
implementation 'com.android.support:support-v4:27.1.1'
implementation 'com.android.support:cardview-v7:27.1.1'
implementation 'com.android.support:recyclerview-v7:27.1.1'
implementation 'com.loopj.android:android-async-http:1.4.9'
implementation 'com.android.support:multidex:1.0.1'
implementation 'com.github.bumptech.glide:glide:3.7.0'
implementation 'com.google.apis:google-api-services-youtube:v3-rev181-1.22.0'
implementation 'com.google.firebase:firebase-core:16.0.3'
implementation 'com.google.firebase:firebase-messaging:17.3.3'
//implementation 'com.google.firebase:firebase-ads:11.0.4'
implementation 'com.google.android.gms:play-services-maps:11.0.4'
implementation 'com.google.android.gms:play-services-location:11.0.4'
implementation 'com.squareup.retrofit2:retrofit:2.1.0'
implementation 'com.squareup.retrofit2:converter-gson:2.1.0'
implementation 'com.google.code.gson:gson:2.7'
implementation 'com.squareup:otto:1.3.8'
implementation 'com.squareup.okhttp3:logging-interceptor:3.4.1'
implementation 'com.loopj.android:android-async-http:1.4.9'
implementation 'com.jsibbold:zoomage:1.1.0'
}
apply plugin: 'com.google.gms.google-services'
The latest stable available version is com.google.firebase:firebase-messaging:17.3.2. Android Studio should notify you about it, when you move your cursor on this line.
use this in your build.gradle file :
configurations.all {
resolutionStrategy {
force 'com.google.android.gms:play-services-basement:16.0.1';
}
}
Please make sure you have a same version name with Firebase and Playservice library . So Please replace your libraries.
implementation 'com.google.firebase:firebase-core:16.0.3'
implementation 'com.google.firebase:firebase-messaging:17.3.3'
implementation 'com.google.firebase:firebase-ads:11.0.4'
implementation 'com.google.android.gms:play-services-maps:11.0.4'
implementation 'com.google.android.gms:play-services-location:11.0.4'
with this lines
implementation 'com.google.firebase:firebase-core:11.2.0'
implementation 'com.google.firebase:firebase-messaging:11.2.0'
implementation 'com.google.firebase:firebase-ads:11.2.0'
implementation 'com.google.android.gms:play-services:11.2.0'
update the Google Play Services libraries:
implementation "com.google.firebase:firebase-core:16.0.3"
implementation "com.google.firebase:firebase-messaging:17.3.2"
implementation "com.google.android.gms:play-services-base:15.0.1"
implementation "com.google.android.gms:play-services-maps:15.0.1"
implementation "com.google.android.gms:play-services-location:15.0.1"
because the 11.0.4 versions will cause the conflict.
Related
Dependency is appcompat dependency is underlined red and failed to build project fully
Changed all support libraries to use the compiledsdk version but still didnt work
dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.android.support:design: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.android.support:cardview-v7:28.1.1'
implementation 'com.google.android.gms:play-services-ads:15.0.1'
implementation 'com.google.android.gms:play-services-gcm:15.0.1'
implementation 'com.google.android.gms:play-services-location:17.0.0'
implementation 'com.squareup.picasso:picasso:2.71828'
implementation files('libs/YouTubeAndroidPlayerApi.jar')
implementation 'com.onesignal:OneSignal:3.10.7#aar'
implementation 'com.google.android.ads.consent:consent-library:1.0.7'
implementation 'com.google.firebase:firebase-core:16.0.7'
implementation files('libs/YouTubeAndroidPlayerApi.jar')
implementation 'de.hdodenhof:circleimageview:2.2.0'
implementation 'com.github.ixiDev:GDPRChecker:v0.2'
implementation 'com.github.siyamed:android-shape-imageview:0.9.3#aar'
implementation 'uk.co.chrisjenx:calligraphy:2.3.0'
implementation 'com.github.arcadefire:nice-spinner:1.4.3'
implementation 'com.github.mjn1369:prettydialog:1.0.4'
implementation project(path: ':SmoothCheckBox-master')
implementation project(':androidsaripaarmaster')
implementation 'com.google.code.gson:gson:2.8.5'
implementation 'com.android.support:recyclerview-v7:28.0.0'
implementation project(':rating-view')
implementation project(':pinlockview')
That is the error message that shows:
Compilation failed to complete
Problem is in this dependency com.google.android.gms:play-services-location:17.0.0. This location dependency use androidX Libraries.
Solution is: Either downgrade this dependency version or migrate to Androidx (whole project dependencies)
after I finish making all the SDK settings for Android and try to compile it gives me the error of “Manifest merger failed with multiple errors”. I have added below dependency lib in gradle file. I'm trying to solve this issue from last 2 days but no any success
AndroidStudio 3.4
Kotlin 1.3.21
Gradle 5.4.1-all
Gradle:
dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.android.support:support-v4:28.0.0'
implementation 'com.android.support:design:28.0.0'
implementation 'com.android.support:cardview-v7:28.0.0'
testImplementation 'junit:junit:4.12'
implementation 'com.android.support:multidex:1.0.3'
implementation 'com.wang.avi:library:2.1.3'
implementation 'com.sothree.slidinguppanel:library:3.3.1'
implementation 'com.squareup:seismic:1.0.2'
implementation 'com.github.bumptech.glide:glide:3.7.0'
implementation 'jp.wasabeef:blurry:2.1.0'
implementation 'com.nshmura:snappysmoothscroller:1.0.0'
implementation 'com.simplecityapps:recyclerview-fastscroll:1.0.16'
implementation 'org.jsoup:jsoup:1.9.2'
implementation 'com.squareup.okhttp:okhttp:2.7.5'
implementation 'com.getkeepsafe.taptargetview:taptargetview:1.9.1'
implementation 'com.sackcentury:shinebutton:0.1.7'
implementation project(':dialogs')
implementation 'com.google.firebase:firebase-ads:17.1.3'
implementation 'com.google.firebase:firebase-core:16.0.7'
implementation 'com.google.android.gms:play-services-auth:16.0.1'
implementation 'com.google.firebase:firebase-messaging:17.3.4'
implementation 'com.google.firebase:firebase-database:16.0.6'
implementation 'com.google.firebase:firebase-invites:16.1.0'
implementation 'com.google.firebase:firebase-storage:16.0.5'
implementation 'com.google.firebase:firebase-config:16.3.0'
implementation 'com.google.code.gson:gson:2.8.5'
implementation 'com.theartofdev.edmodo:android-image-cropper:2.6.0'
implementation 'com.jakewharton:butterknife:8.8.1'
kapt 'com.jakewharton:butterknife-compiler:8.8.1'
implementation 'com.github.takahirom.downloadable.calligraphy:downloadable-calligraphy:0.1.3'
implementation 'com.google.android:flexbox:1.0.0'
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
implementation 'com.squareup.retrofit2:retrofit:2.5.0'
implementation 'com.squareup.retrofit2:converter-gson:2.5.0'
implementation 'com.squareup.okhttp3:logging-interceptor:3.9.1'
implementation 'com.onesignal:OneSignal:[3.9.1, 3.99.99]'
}
I have used the above dependency in my project, but some of the libraries are a conflict with each other.
you can add one line below to XML Elements for telling to manifest merger your app manifest is highest priority manifest in app
tools:node="merge
please read this article for more information
hope this help
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?
com.google.android.gms:play-services are giving errors, they were working fine, but when I pres the run button in the for testing purpose the these all libraries just vanish. I don't know what to do ??
dependencies {
implementation('com.mikepenz:materialdrawer:4.4.6#aar') {
transitive = true
}
implementation fileTree(include: ['*.jar'], dir: 'libs')
androidTestImplementation('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
//noinspection GradleCotestApimpatible
implementation 'com.android.support:appcompat-v7:27.1.1'
implementation 'com.android.support:design:27.1.1'
implementation 'com.android.support:recyclerview-v7:27.1.1'
implementation 'com.google.code.gson:gson:2.8.0'
implementation 'com.squareup.picasso:picasso:2.5.2'
implementation 'com.mikepenz:google-material-typeface:2.1.2.1#aar'
implementation 'com.loopj.android:android-async-http:1.4.9'
implementation 'com.mikepenz:google-material-typeface:2.1.2.1#aar'
implementation 'com.nostra13.universalimageloader:universal-image-loader:1.9.4'
implementation 'com.theartofdev.edmodo:android-image-cropper:2.2.+'
implementation 'com.google.android.gms:play-services-analytics:16.0.6'
implementation 'com.google.firebase:firebase-ads:17.1.2'
implementation'com.google.firebase:firebase-messaging:17.3.4'
implementation 'com.android.support:cardview-v7:27.1.1'
testImplementation 'junit:junit:4.12'
implementation files('libs/gcm.jar')
implementation 'com.github.Commit451.YouTubeExtractor:youtubeextractor:2.1.0'
implementation 'com.itextpdf:itextpdf:5.1.1'
implementation 'de.hdodenhof:circleimageview:2.1.0'
implementation 'com.akexorcist:RoundCornerProgressBar:2.0.3'
implementation 'com.github.rtoshiro.fullscreenvideoview:fullscreenvideoview:1.1.2'
implementation 'com.mikhaellopez:circularprogressbar:1.1.1'
implementation 'com.android.support:multidex:1.0.3'
implementation 'com.android.support.constraint:constraint-layout:1.0.2'
implementation 'in.gauriinfotech:commons:1.0.8'
implementation 'com.github.rey5137:material:1.2.2'
implementation 'com.facebook.android:facebook-android-sdk:[4,5)'
implementation files('libs/YouTubeAndroidPlayerApi.jar')
implementation 'com.squareup.okhttp:okhttp:2.5.0'
implementation 'com.shamanland:xdroid-toaster:0.0.5'
implementation 'com.github.bumptech.glide:glide:3.7.0'
implementation 'com.google.firebase:firebase-core:16.0.6'
implementation 'io.reactivex.rxjava2:rxjava:2.1.5'
implementation 'io.reactivex.rxjava2:rxandroid:2.0.1'
implementation 'com.daasuu:animateHorizontalProgressBar:0.2.4'
}
apply plugin: 'com.google.gms.google-services'
had the same issue then I tried every answer, clean the code, rebuild project with graddle, invalidate the cache and restart, checking the dependency > classpath 'com.google.gms:google-services:4.0.1' , these were the most populated suggestions. but none of them worked, then I check my network connection that was poor, due to a long time for downloading dependency either it timed out or gave the same error. please check your connection first and then apply these solutions.
My problem is about firebase versions when I add the last line "implementation 'com.google.firebase:firebase-core:16.0.1'" I get this problem
This is my code :
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:27.1.1'
implementation 'com.android.support:design:27.1.1'
implementation 'com.android.support:cardview-v7:27.1.1'
implementation 'me.zhanghai.android.materialratingbar:library:1.2.0'
implementation 'com.android.support:support-v4:27.1.1'
implementation 'com.android.support:recyclerview-v7:27.1.1'
implementation 'com.squareup.retrofit2:retrofit:2.2.0'
implementation 'com.squareup.retrofit2:converter-gson:2.1.0'
implementation 'com.android.support.constraint:constraint-layout:1.0.2'
implementation 'com.squareup.picasso:picasso:2.5.2'
implementation 'com.github.sharish:ShimmerRecyclerView:v1.1'
implementation 'de.hdodenhof:circleimageview:2.2.0'
implementation 'com.squareup.okhttp3:logging-interceptor:3.8.0'
implementation 'com.github.ivbaranov:materiallettericon:0.2.3'
implementation 'com.mikhaellopez:circularimageview:3.0.2'
implementation 'com.google.android.gms:play-services-places:12.0.1'
implementation 'com.google.android.gms:play-services-maps:12.0.1'
implementation 'com.google.firebase:firebase-auth:12.0.1'
implementation 'com.google.firebase:firebase-messaging:12.0.1'
implementation 'com.google.firebase:firebase-database:12.0.1'
implementation 'com.google.firebase:firebase-storage:12.0.1'
implementation 'com.firebaseui:firebase-ui-database:3.3.0'
implementation 'com.google.firebase:firebase-config:12.0.1'
implementation 'com.google.android.gms:play-services-appinvite:12.0.1'
implementation 'com.google.android.gms:play-services-ads:12.0.1'
implementation 'com.google.firebase:firebase-appindexing:12.0.1'
implementation 'com.google.firebase:firebase-analytics:12.0.1'
implementation 'com.firebase:firebase-jobdispatcher:0.8.5'
implementation 'com.google.firebase:firebase-core:16.0.1'
I think that
'com.google.firebase:firebase-core:16.0.1'
need to be, before other firebase dependencies!
And the last version of firebase-core is 16.0.3, Android Studio warns this.
In the final of app.gradle include:
apply plugin: 'com.google.gms.google-services'
Try clean project and rebuild project, if this didn't work, post here the build errors.