I want to add ads for my app so ı use
npm install cordova-plugin-admob-free
npm install @ionic-native/admob-free
ionic cap sync
But when ı run capacitor android there is a problem
How can i fix it ?
In project 'app' a resolved Google Play services library dependency depends on another at an exact version (e.g. "[11.0.
4]", but isn't being resolved to that version. Behavior exhibited by the library will be unknown.
Dependency failing: com.google.android.gms:play-services-clearcut:11.0.4 -> com.google.android.gms:play-services-tasks@[
11.0.4], but play-services-tasks version was 17.0.0.
The following dependencies are project dependencies that are direct or have transitive dependencies that lead to the art
ifact with the issue.
-- Project 'app' depends onto com.google.android.gms:play-services-ads@11.0.4
-- Project 'app' depends onto com.google.android.gms:play-services-clearcut@{strictly 11.0.4}
-- Project 'app' depends onto com.google.android.gms:play-services-ads@{strictly 11.0.4}
-- Project 'app' depends onto com.google.android.gms:play-services-safetynet@{strictly 11.0.4}
-- Project 'app' depends onto com.google.android.gms:play-services-base@{strictly 17.0.0}
-- Project 'app' depends onto com.google.android.gms:play-services-tasks@{strictly 17.0.0}
-- Project 'app' depends onto com.google.android.gms:play-services-base@11.0.4
For extended debugging info execute Gradle from the command line with ./gradlew --info :app:assembleDebug to see the dep
endency paths to the artifact. This error message came from the google-services Gradle plugin, report issues at https://
github.com/google/play-services-plugins and disable by adding "googleServices { disableVersionCheck = false }" to your b
uild.gradle file.