Task :app:preDebugBuild FAILED
FAILURE: Build failed with an exception.
- What went wrong:
xecution failed for task ':app:preDebugBuild'.
Android dependency 'com.google.android.gms:play-services-base' has different version for the compile (12.0.1) and runtime (17.0.0) classpath. You should manually set the same version via DependencyResolution
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
BUILD FAILED in 1m 0s
18 actionable tasks: 1 executed, 17 up-to-date
Could not install the app on the device, read the error above for details. Make sure you have an Android emulator running or a device connected and have set up your Android development environment: https://facebook.github.io/react-native/docs/getting-started.html
I have searched high and low for the answer and there are some similar but none of the ways people got if fixed work for me! Please help, it would be much appreciated!
Let me know if you have any ideas or need me to explain or something.