Advertisement
Guest User

Untitled

a guest
Jul 16th, 2019
302
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.38 KB | None | 0 0
  1. "react": "16.3.1"
  2. "react-native": "0.55.3"
  3. "react-native-firebase": "^4.3.8"
  4.  
  5. classpath 'com.android.tools.build:gradle:3.1.3'
  6. classpath 'com.google.gms:google-services:4.0.1'
  7.  
  8. compileSdkVersion 27
  9. buildToolsVersion '27.0.3'
  10. dependencies {
  11. implementation project(':react-native-firebase')
  12. // Firebase dependencies
  13. implementation "com.google.android.gms:play-services-base:15.0.1"
  14. implementation "com.google.firebase:firebase-core:16.0.4"
  15. implementation "com.google.firebase:firebase-messaging:17.3.4"
  16. ...
  17. }
  18.  
  19. FAILURE: Build failed with an exception.
  20.  
  21. * What went wrong:
  22. Execution failed for task ':app:preDebugBuild'.
  23. > Android dependency 'com.google.android.gms:play-services-base' has different version for the compile (16.0.1) and runtime (17.0.0) classpath. You should manually set the same version via DependencyResolution
  24.  
  25. resolutionStrategy.eachDependency { details ->
  26. if (details.requested.group == 'com.google.android.gms'
  27. && (details.requested.name.contains('play-services-core')
  28. || details.requested.name.contains('play-services-tasks')
  29. || details.requested.name.contains('play-services-basement')
  30. || details.requested.name.contains('play-services-stats'))) {
  31. details.useVersion "17.0.0"
  32. }
  33. }[error after running command react-native run-android][1]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement