Possible errors
Plugin integration errors
You might encounter the following Android build error when integrating the React Native plugin:
/Users/AAAXXX/AX/reactapps/node_modules/react-native-camera/android/ build/intermediates/packaged_res/mlkitDebug/
values/values.xml:9:4: Duplicate value for resource 'attr/aspectRatio' with config 'DEFAULT' and product ''.
Resource was previously defined here: com.aaaxxxgroupreactapps.app- mergeCentrepointDebugResources-84:/values/values.xml:10269: .
Here's how you can fix it:
-
Add the patch-package dependency and call it as a postinstall script in package.json.
-
Create a patches folder in the project root and add the file to it.
Was the article helpful?
Previous