Source link
Add the library that the studio complains about (asks for com.android.support:customtabs:26.1.0 ), but change its version to yours (28.0.0).
(PS This customtabs library will need as a result 2 more dependencies)
Explanation: You may be confused by the error message because you do not use customtabs, but you have a conflict. Well .. you did not use it directly, but one of your libraries uses the old version of customtabs internally, so you need to request it directly.
As a result, you need to add dependencies:
implementation 'com.android.support:customtabs:28.0.0' implementation 'com.android.support:support-media-compat:28.0.0' implementation 'com.android.support:support-v4:28.0.0'
Do not forget to click "Sync" so that Gradle can rebuild the dependency graph and see if there are any more conflicts.
'com.google.android.gms:play-services-ads:17.1.0'contains a transitive dependency within itself. Theexclude module: 'appcompat-v7'in the options for connecting the admob library can help. In general, you can leave as is. This is a warning. Well, the commandgradlew app:dependenciesjust in case. - pavelimplementation ('com.android.support:support-v4:28.0.0'){ exclude module: 'appcompat-v7' }. Andgradlew app:dependenciesis the command entered at Terminal. You can read about it here - zayn1991