buildscript { ext { buildToolsVersion = "34.0.0" minSdkVersion = 21 compileSdkVersion = 34 targetSdkVersion = 34 ndkVersion = "25.1.8937393" kotlinVersion = "1.8.0" } repositories { /** * google */ maven { url "https://maven.aliyun.com/repository/google" } /** * gradle-plugin * 源地址: https://plugins.gradle.org/m2/ */ maven { url "https://maven.aliyun.com/repository/gradle-plugin" } /** * central仓和jcenter仓的聚合仓 * 阿里云仓库地址(老版): https://maven.aliyun.com/nexus/content/groups/public/ */ maven { url "https://maven.aliyun.com/repository/public" } /** * central * 源地址: https://repo1.maven.org/maven2/ */ maven { url "https://maven.aliyun.com/repository/central" } /** * jcenter */ maven { url "https://maven.aliyun.com/repository/jcenter" } // 原始 google() // mavenCentral() } dependencies { classpath("com.android.tools.build:gradle") classpath("com.facebook.react:react-native-gradle-plugin") classpath("org.jetbrains.kotlin:kotlin-gradle-plugin") } } apply plugin: "com.facebook.react.rootproject" allprojects { repositories { maven { url "https://maven.aliyun.com/repository/google" } maven { url "https://maven.aliyun.com/repository/gradle-plugin" } maven { url "https://maven.aliyun.com/repository/public" } maven { url "https://maven.aliyun.com/repository/central" } maven { url "https://maven.aliyun.com/repository/jcenter" } } }