play-services-plugins
play-services-plugins copied to clipboard
What went wrong: Could not determine the dependencies of task ':app:preDebugBuild'
In project 'app' a resolved Google Play services library dependency depends on another at an exact version (e.g. "[16.5. 0]", but isn't being resolved to that version. Behavior exhibited by the library will be unknown.
Dependency failing: com.google.android.gms:play-services-measurement-api:16.5.0 -> com.google.android.gms:play-services- measurement-sdk-api@[16.5.0], but play-services-measurement-sdk-api version was 17.1.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.firebase:firebase-analytics@{strictly 16.5.0} -- Project 'app' depends on project 'react' which depends onto com.google.android.gms:play-services-ads@+ -- Project 'app' depends onto com.google.android.gms:play-services-ads@{strictly 19.0.1} -- Project 'app' depends onto com.google.android.gms:play-services-gass@{strictly 19.0.1} -- Project 'app' depends onto com.google.android.gms:play-services-measurement-sdk-api@{strictly 17.1.0} -- Project 'app' depends onto com.google.android.gms:play-services-measurement-api@{strictly 16.5.0} -- Project 'app' depends onto com.google.android.gms:play-services-measurement-sdk@{strictly 16.5.0} -- Project 'app' depends onto com.google.firebase:[email protected] -- Project 'app' depends onto com.google.android.gms:play-services-ads-lite@{strictly 19.0.1} -- Project 'app' depends onto com.google.firebase:firebase-core@{strictly 16.0.9}
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.
-
Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
-
Get more help at https://help.gradle.org
BU�LD FAILED in 7s
at checkExecSyncError (child_process.js:630:11)
at execFileSync (child_process.js:648:15)
at runOnAllDevices (C:\washands\node_modules\@react-native-community\cli-platform-android\build\commands\runAndroid\runOnAllDevices.js:94:39)
at buildAndRun (C:\washands\node_modules\@react-native-community\cli-platform-android\build\commands\runAndroid\index.js:179:41)
at C:\washands\node_modules\@react-native-community\cli-platform-android\build\commands\runAndroid\index.js:133:12
at processTicksAndRejections (internal/process/task_queues.js:97:5)
at async Command.handleAction (C:\washands\node_modules\react-native\node_modules\@react-native-community\cli\build\index.js:182:9)
Please include your app's build.gradle file.
Facing same issue.
i solve it by , dependencies { classpath('com.android.tools.build:gradle:3.0.1') }