AAPT: error: resource android: attr/IStar not found.
This error occurred suddenly, it was working fine last week.

I've tried many solutions but none works. Solutions tried:
npm install./gradlew clean in /androidnpm cache clean --forceorg.gradle.jvmargs=-Xmx4608m in /android/gradle.propertiesext{} add androidXCore = "1.6.0"npm update @react-native-community/netinfoVersion:
"react-native": "0.63.4",
compileSdkVersion = 29
targetSdkVersion = 29
Add this in your android/buld.gradle file.
def REACT_NATIVE_VERSION = new File(['node', '--print',"JSON.parse(require('fs').readFileSync(require.resolve('react-native/package.json'), 'utf-8')).version"].execute(null, rootDir).text.trim())
allprojects {
configurations.all {
resolutionStrategy {
// Remove this override in 0.65+, as a proper fix is included in react-native itself.
force "com.facebook.react:react-native:" + REACT_NATIVE_VERSION
}
}
Ref : https://github.com/facebook/react-native/issues/35210
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With