Possible errors
Plugin integration errors
During the integration of a ReactNative plugin, an Android application build error may occur:
/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: .
To fix the error:
-
Add the patch-package dependency and add its execution as a postinstall script in package.json.
-
Create a patches directory at the root of the project and add file there.
Was the article helpful?
Previous