---
metadata:
  - name: generator
    content: Diplodoc Platform v5.50.6
alternate:
  - https://ads.yandex.com/helpcenter/en/dev/react-native/react-native-errors.md
  - https://ads.yandex.com/helpcenter/ru/dev/react-native/react-native-errors.md
  - https://ads.yandex.com/helpcenter/zh/dev/react-native/react-native-errors.md
---
> **Documentation Index:** Fetch the complete configuration index at https://ads.yandex.com/helpcenter/en/llms.txt

# Possible errors

## Plugin integration errors {#integration}

During the integration of a ReactNative plugin, an Android application build error may occur:

```java translate=no
/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:

1. Add the [patch-package](https://www.npmjs.com/package/patch-package) dependency and add its execution as a postinstall script in package.json.

2. Create a **patches** folder at the root of the project and add [file](https://doc-static.yandex.net/support/RSYA-RMP/react-native-camera_4.2.1.patch) there.
