react-native-tooltips icon indicating copy to clipboard operation
react-native-tooltips copied to clipboard

Task :react-native-tooltips:verifyReleaseResources FAILED

Open shaheem-khanzada opened this issue 5 years ago • 4 comments

React-native : 0.61.2 getting error when i create release build with releaseAssemble

What went wrong: Execution failed for task ':react-native-tooltips:verifyReleaseResources'.

1 exception was raised by workers: com.android.builder.internal.aapt.v2.Aapt2Exception: Android resource linking failed /home/appbakerz/Desktop/rn-project/flatmatch/node_modules/react-native-tooltips/android/build/intermediates/res/merged/release/values-v28/values-v28.xml:7: error: resource android:attr/dialogCornerRadius not found. /home/appbakerz/Desktop/rn-project/flatmatch/node_modules/react-native-tooltips/android/build/intermediates/res/merged/release/values-v28/values-v28.xml:11: error: resource android:attr/dialogCornerRadius not found. /home/appbakerz/Desktop/rn-project/flatmatch/node_modules/react-native-tooltips/android/build/intermediates/res/merged/release/values/values.xml:2743: error: resource android:attr/fontVariationSettings not found. /home/appbakerz/Desktop/rn-project/flatmatch/node_modules/react-native-tooltips/android/build/intermediates/res/merged/release/values/values.xml:2744: error: resource android:attr/ttcIndex not found. error: failed linking references.

shaheem-khanzada avatar Oct 15 '19 18:10 shaheem-khanzada

Facing the same issue as well

amaimasque avatar Mar 05 '20 06:03 amaimasque

Hi, solved this by changing the buildToolsVersion inside node_modules>react-native-tooltips>android>build.gradle same as the buildToolsVersion in the build.gradle inside android folder

amaimasque avatar Mar 05 '20 07:03 amaimasque

Hi, I am facing the same issue.

any update?

swapanil avatar Dec 22 '20 13:12 swapanil

I think I found a fix for this issue - you'll need to update the node_modules>react-native-tooltips>android>build.gradle file and update the followings:

  • compileSdkVersion => change to the same that you're using (I've changed this to 29)
  • buildToolsVersion => change to the same that you're using (I've changed this to 29.0.2)
  • targetSdkVersion => change to the same that you're using (I've changed this to 29)

here is a patch if you're using patch-package (which is a lot easier!): https://gist.github.com/adamivancza/03de14e489ac24c97ebcef853164632f

adamivancza avatar Jan 04 '21 18:01 adamivancza