build.gradle 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. // Top-level build file where you can add configuration options common to all sub-projects/modules.
  2. buildscript {
  3. repositories {
  4. jcenter()
  5. maven{url 'https://maven.aliyun.com/repository/google'}
  6. }
  7. dependencies {
  8. classpath 'com.android.tools.build:gradle:3.0.1'
  9. // classpath 'com.android.tools.build:gradle:2.2.3'
  10. // NOTE: Do not place your application dependencies here; they belong
  11. // in the individual module build.gradle files
  12. }
  13. }
  14. allprojects {
  15. repositories {
  16. mavenLocal()
  17. jcenter()
  18. maven {
  19. // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
  20. url "$rootDir/../node_modules/react-native/android"
  21. }
  22. // maven{url 'https://maven.google.com'}
  23. maven{url 'https://maven.aliyun.com/repository/google'}
  24. maven{url 'https://jitpack.io'}
  25. }
  26. }
  27. subprojects{
  28. project.configurations.all{
  29. resolutionStrategy.eachDependency{
  30. details ->
  31. if(details.requested.group == 'com.android.support' && !details.requested.name.contains('multidex')){
  32. details.useVersion "26.1.0"
  33. }
  34. }
  35. }
  36. }