Open majiabin opened 5 years ago
👆 this may help to solve this issue ~
You need to add following code in your project's android/build.gradle:
subprojects {
afterEvaluate {project ->
if (project.hasProperty("android")) {
android {
compileSdkVersion 27
buildToolsVersion "27.0.2"
}
}
}
}
Have you solved this problem?
Updating node_modules/react-native-picker/android/build.gradle
sdk version to 28( using React Native 0.59.5) fixes it.
android {
compileSdkVersion 28
//buildToolsVersion "23.0.1"
defaultConfig {
minSdkVersion 16
targetSdkVersion 28
@LostChrs 谢谢你的帮助!解決了
Updating
node_modules/react-native-picker/android/build.gradle
sdk version to 28( using React Native 0.59.5) fixes it.android { compileSdkVersion 28 //buildToolsVersion "23.0.1" defaultConfig { minSdkVersion 16 targetSdkVersion 28
it is working for me
def safeExtGet(prop, fallback) { rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback } android { compileSdkVersion safeExtGet('compileSdkVersion', 27) buildToolsVersion safeExtGet('buildToolsVersion', '23.0.1') ... }