1. 程式人生 > >build.gradle配置

build.gradle配置

buildscript { ext { buildToolsVersion = “27.0.3” minSdkVersion = 16 compileSdkVersion = 27 targetSdkVersion = 26 supportLibVersion = “27.1.1” } repositories { jcenter() maven { url ‘https://maven.google.com’ } google() } dependencies { classpath ‘com.android.tools.build:gradle:3.2.0’ // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files } }

allprojects { repositories { mavenLocal() jcenter() maven { url ‘https://maven.google.com’ } maven { // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm url “$rootDir/…/node_modules/react-native/android” } } }