Closed pankajgupta1 closed 3 years ago
Task :react-native-user-agent:verifyReleaseResources FAILED
FAILURE: Build failed with an exception.
1 exception was raised by workers: com.android.builder.internal.aapt.v2.Aapt2Exception: Android resource linking faile /Users/abc/Documents/iGamio/node_modules/react-native-user-agent/android/build/intermediates/res/merged/release/values-v28/values-v28.xml:7: error: resource android:attr/dialogCornerRadius not found. /Users/abc/Documents/iGamio/node_modules/react-native-user-agent/android/build/intermediates/res/merged/release/values-v28/values-v28.xml:11: error: resource android:attr/dialogCornerRadius not found. /Users/abc/Documents/iGamio/node_modules/react-native-user-agent/android/build/intermediates/res/merged/release/values/values.xml:2743: error: resource android:attr/fontVariationSettings not found. /Users/abc/Documents/iGamio/node_modules/react-native-user-agent/android/build/intermediates/res/merged/release/values/values.xml:2744: error: resource android:attr/ttcIndex not found. error: failed linking references.
I am using "react": "16.9.0", "react-dom": "^16.12.0", "react-native": "0.61.5", "react-native-user-agent": "^2.1.0",
I am facing this issue. Please help me in resolve this. Thank you.
I changed manually in node_modules/react-native-user-agent/android/build.gradle
compileSdkVersion 27 buildToolsVersion "27.0.3"
to
compileSdkVersion 28 buildToolsVersion "28.0.3"
This worked for me.
FAILURE: Build failed with an exception.
I am using "react": "16.9.0", "react-dom": "^16.12.0", "react-native": "0.61.5", "react-native-user-agent": "^2.1.0",
I am facing this issue. Please help me in resolve this. Thank you.