When I add implementation \'com.google.android.gms:play-services-ads:18.2.0\'
to my build.gradle, Android Studio highlights implementation \'com.android.s
You are using
implementation 'com.google.android.gms:play-services-ads:18.2.0'
Google Play services migrated to AndroidX in the latest release.
Dependencies using groupId com.android.support and androidx.* can not be combined
It means that you are using both, support libraries and androidx libraries.
You can:
implementation 'androidx.appcompat:appcompat:1.0.2'
)You can check the official release notes:
Warning: This release is a MAJOR version update and breaking change. The latest update to Google Play services and Firebase includes the following changes:
Migration from Android Support Libraries to Jetpack (AndroidX) Libraries. Libraries will not work unless you make the following changes in your app:
com.android.tools.build:gradle
to v3.2.1 or later.compileSdkVersion
to 28 or later.