AAPT: error: resource android: attr/IStar not found.个
这个错误发生得很突然,上周它还运行得很好.
我试过很多办法,但都不管用.try 的解决方案:
- 删除、重新安装NPM,使用
npm install
- Clean Gradle,
./gradlew clean
英寸/安卓 - 使用
npm cache clean --force
清理NPM缓存 - 在/android/gradle.properties中添加
org.gradle.jvmargs=-Xmx4608m
- 在/安卓/build.gradle,
ext{}
内加androidXCore = "1.6.0"
-
npm update @react-native-community/netinfo
个 - Core:core-ktx:+to androidx.core:core-ktx:1.6.0但是我已经搜索了我的项目,没有‘androidx.core:core-ktx:+.所以我找到的这个解决方案无关紧要.
Version:个
"react-native": "0.63.4",
compileSdkVersion = 29
targetSdkVersion = 29