---
metadata:
  - name: generator
    content: Diplodoc Platform v5.57.3
alternate:
  - https://boost.yandex.ru/doc/en/ad-monetization/dev/react-native/react-native-errors.md
  - https://boost.yandex.ru/doc/ru/ad-monetization/dev/react-native/react-native-errors.md
  - href: en/ad-monetization/dev/react-native/react-native-errors.md
    type: text/markdown
    title: Markdown version
  - href: llms.txt
    type: text/markdown
    title: llms.txt
---
> **Documentation Index:** Fetch the complete configuration index at https://boost.yandex.ru/doc/en/llms.txt

# Possible errors

## Plugin integration errors {#integration}

You might encounter the following Android build error when integrating the React Native plugin:

```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: .
```

Here's how you can fix it:

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

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