I am pretty novice in react-native. I am trying to build a release APK of android for my react-native application. But I am getting this error :
AAPT: error: resource android:attr/fontVariationSettings AAPT: error: style attribute 'android:attr/keyboardNavigationCluster'AAPT: error: resource android:attr/fontWeight not foundAAPT: error: resource android:attr/fontStyle not found
I am using command gradlew assembleRelease
When I try to build debug APK, it builds successfully.I checked a few solutions but most of them were to upgrade android API versions to 28,29 and upgrading react version. However I am already using latest versions for both.Android API version : 28React Version : "react-native": "^0.61.5"
I have already tried clearing .gralde cache and rebuilding and Jetify before creating build.Please help if you have a different solution.