I'm getting this error in React Native. This question says to put
ext {
compileSdkVersion = 26
}
in the 'top level file'. What is the 'top level file' for this in React Native?
module/build.gradle
already has
android { compileSdkVersion rootProject.ext.compileSdkVersion...
React Native android has two build.gradle files
// android/build.gradle
ext {
buildToolsVersion = "26.0.3"
minSdkVersion = 16
compileSdkVersion = 26
targetSdkVersion = 26
supportLibVersion = "26.1.0"
}
//android/app/build.gradle
android {
compileSdkVersion rootProject.ext.compileSdkVersion
}
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.