Latest google play services Ads Library conflicting Issues 17.1.2 - android

When I update Gradle google play services Ads Dependency to the latest version 17.1.2
**implementation 'com.google.android.gms:play-services-ads:17.1.2**'
Conflicting issues found saying: All gms/firebase libraries must use the same version. Examples include implementation 'com.google.android.gms:play-services-ads:17.1.2 and implementation 'com.google.android.gms:play-measurement-base:16.0.5.
Note: I have not even used firebase anywhere in the app and I update the ads dependency from version 15.0.1.

Use
implementation 'com.google.android.gms:play-services-ads:16.0.1'
implementation 'com.google.android.gms:play-services-measurement-base:16.0.1'
Hope it helps.

you have to choice first update all google dependency with same version or second one is remain dependency with old version.

Related

Which library should I use for Location when using google maps?

I have the following library for the google maps and it works fine
implementation 'com.google.android.gms:play-services-maps:16.1.0'
But when I try to add this one for location,
implementation 'com.google.android.gms:play-services-location:16.1.0'
the following error occurs
Failed to resolve: com.google.android.gms:play-services-location:16.1.0
Which library for the location should I use?
THANK YOU.
You will get latest gradle dependencies here
https://developers.google.com/android/guides/setup
It is probably because 16.1.0 does not exist for this library. Google Play Services libraries do not always have the same version. So maps might be on 16.1.0 but location might not even have this version.
To get the latest versions, check the official release page: https://developers.google.com/android/guides/releases
And as you are just starting, make sure to use the latest ones:
com.google.android.gms:play-services-location:17.0.0
com.google.android.gms:play-services-maps:17.0.0
Yes, it is a coincident that those versions are currently the same. As you can see in the list there are already libraries on 19.0.0, like appindexing
com.google.firebase:firebase-appindexing:19.0.0
Edit
A small practical tip: If you replace the version by + and sync the project, gradle will get the newest one and afterwards you can use the IDE warning to replace the + again with the newest version number. That eases a bit the checking on different pages if there is a new version or not etc

Firebase Warning to use firebase-core library when using firebase-messaging library

I am using firebase:firebase-messaging library for push notification. While building the application I am seeing a warning which says
Warning: The app Gradle file must have a dependency on com.google.firebase:firebase-core for Firebase services to work as intended.
Release notes by firebase say
https://developers.google.com/android/guides/releases#may_23_2018
Firebase now requires the app Gradle file to explicitly list com.google.firebase:firebase-core as a dependency for Firebase services to work as expected.
Firebase-core library is used for analytics, what will happen if I don't include this library? I am already using gms:play-services-analytics.
Also, I have found the library version for both gms:play-services-analytics must be the same as firebase:firebase-core library to avoid any build error.
Something like below
implementation 'com.google.android.gms:play-services-analytics:16.0.4'
implementation 'com.google.firebase:firebase-core:16.0.4'
implementation 'com.google.firebase:firebase-messaging:17.3.4'
Will there be any impact on the application if I will include firebase:firebase-core library in application gradle along with gms:play-services-analytics?
Why firebase is showing the above warning ?
What will be impacted if I don't include firebase-core with firebase-messaging library? A warning can be ignored?
Is this due to firebase adding analytics for all its features?
Here: https://support.google.com/firebase/answer/6383877?hl=en
If you don't include com.google.firebase:firebase-core, then you won't be able to use the other firebase services like firebase-database or firebase-messaging.
If you are using google-service version 3.2.1+, then you can use different library versions for gms:play-services-analytics and firebase:firebase-core.

Android Studio cannot find Firebase

I'm trying to get the Android P preview setup, and in the process I am upgrading all my dependencies, but it gets mad when Firebase and Google Play Services don't match versions. (It wont build). The latest version of Google Play Services is 15.0.1 as denoted here. The latest version of Firebase is version 16.0.0, according to this page. So I figured I should use 15.0.1 for all of them. However Android Studio can't seem to resolve any version of Firebase. It always gives me an error like this:
It gives the same error for any version I give it.
Here are my dependencies:
implementation 'com.google.firebase:firebase-core:15.0.1'
implementation 'com.google.firebase:firebase-ads:15.0.1'
implementation 'com.google.android.gms:play-services-base:15.0.1'
implementation 'com.google.android.gms:play-services-gcm:15.0.1'
implementation 'com.google.android.gms:play-services-location:15.0.1'
implementation 'com.google.android.gms:play-services-places:15.0.1'
Try to update firebase like below:
implementation 'com.google.firebase:firebase-core:16.0.0'
Also make sure that you use latest google service:
classpath 'com.google.gms:google-services:4.0.1'
From docs you are linked to you can find annotation
// Getting a "Could not find" error? Make sure you have
// added the Google maven respository to your root build.gradle
allprojects {
// ...
repositories {
// ...
maven {
url "https://maven.google.com" // Google's Maven repository
}
}
The firebase-core library wasn't released at version 15.0.1. You can see via http://maven.google.com that you should use either 15.0.2 or 16.0.0 (my suggestion is to always use 16+ libraries when they exist b/c we're removing version ranges from the POM files (therefore, you'll go back to hermetic builds). The May 23rd entry of our release notes goes into more details, if needed. (https://developers.google.com/android/guides/releases)
The assumption that all of the libraries should be used at the same version is no longer valid as of versions 15.0.0 and greater. Libraries will continue to release independently and with ever-diverging version numbers (following a SemVer.org scheme).

gradle.build issue - 15.0.0 15.0.1 conflict with ads-identifier

When loading com.google.android.gms:play-services-* packages same version needs to be used in different packages.
I'm importing gms-location and gms-analytics using:
implementation 'com.google.android.gms:play-services-location:15.0.0'
implementation 'com.google.android.gms:play-services-analytics:15.0.0'
I'm Using version 15.0.0 in both since location latest version is 15.0.1 yet analytics is skipping 15.0.1, latest is 15.0.2.
So 15.0.0 is the latest common release.
Versions list can be seen here:
https://dl.google.com/dl/android/maven2/index.html
Im getting an error about com.google.android.gms:ads-identifier (which imports itself somehow) it's version is 15.0.1 - the conflict creates runtime issues in release versions.
How do I get rid of ads-identifier ?
As you can see in the release notes, just like firebase, play services libs now have independent versions as well. So add them with their respective versions:
Google Play services libraries after 15.0.0 now have independent
version numbers
implementation 'com.google.android.gms:play-services-location:15.0.1'
implementation 'com.google.android.gms:play-services-analytics:15.0.2'
Check as well if your gms plugin is up to date:
classpath 'com.google.gms:google-services:3.3.1'

What is the latest firebase-ui-auth for firebase auth 12.0.0

Not able to find anywhere the version used for firebase-auth 12.0.0.
Github page shows the version upto 11.8.0.
Used 3.2.2 but showing error in android studio..
Not able to use com.google.android.gms:play-services-location:12.0.0 because of firebase auth 11.8.0
Mixed versions error was coming.
They have not updated the UI-Auth API. They usually run a few versions behind the Firebase Auth API. The latest UI version is 3.2.2 which corresponds to 11.8.0. You'll have to wait for sometime to for the UI Auth API to get updated.
Following the instructions in the documentation for upgrading dependencies, add these to your dependencies, replacing 27.x.x with the version of the Support Libs you are using:
implementation "com.google.firebase:firebase-auth:12.0.0"
implementation "com.google.android.gms:play-services-auth:12.0.0"
implementation "com.android.support:design:27.x.x"
implementation "com.android.support:customtabs:27.x.x"
implementation "com.android.support:cardview-v7:27.x.x"

Categories

Resources