错误信息:
app/build/intermediates/incremental/mergeDebugResources/merged.dir/values/values.xml:7200
AAPT: error: resource android:attr/lStar not found.
修改方案,固定react native 的版本
subprojects {
afterEvaluate {project ->
if (project.hasProperty("android")) {
android {
compileSdkVersion 30 //do this in android/app/build.gradle too
buildToolsVersion '30.0.2' //do this in android/app/build.gradle too
}
}
}
project.configurations.all {
resolutionStrategy.force 'com.facebook.react:react-native:0.61.4'
}
}