如何解决打包报错com.android.builder.internal.aapt.v2.Aapt2Exception: Android resource linking failed
将对应组件编译版本改一下即可
image.png
Execution failed for task ':react-native-unity-view:verifyReleaseResources'.
> 1 exception was raised by workers:
com.android.builder.internal.aapt.v2.Aapt2Exception: Android resource linking failed
/project/Vesal-Projects/AnatomyMaster/node_modules/react-native-unity-view/android/build/intermediates/res/merged/release/values-v28/values-v28.xml:7: error: resource android:attr/dialogCornerRadius not found.
/project/Vesal-Projects/AnatomyMaster/node_modules/react-native-unity-view/android/build/intermediates/res/merged/release/values-v28/values-v28.xml:11: error: resource android:attr/dialogCornerRadius not found.
/project/Vesal-Projects/AnatomyMaster/node_modules/react-native-unity-view/android/build/intermediates/res/merged/release/values/values.xml:2753: error: resource android:attr/fontVariationSettings not found.
/project/Vesal-Projects/AnatomyMaster/node_modules/react-native-unity-view/android/build/intermediates/res/merged/release/values/values.xml:2754: error: resource android:attr/ttcIndex not found.
error: failed linking references.
网友评论