DataDog / dd-sdk-android-gradle-plugin

The Datadog Gradle Plugin for Android
Apache License 2.0
13 stars 9 forks source link

Latest build (1.13.0) breaks react native project #242

Closed andresousa closed 1 month ago

andresousa commented 3 months ago

Describe what happened Build error: app/build/generated/datadog/buildId/devRelease/datadog.buildId: Resource and asset merger: Duplicate resources

Steps to reproduce the issue: app build.gradle file:

plugins {
    (...)
    id("com.datadoghq.dd-sdk-android-gradle-plugin") version "1.+"
}

datadog {
    checkProjectDependencies = "none"
}

apply from: "../../node_modules/@datadog/mobile-react-native/datadog-sourcemaps.gradle"
(...)

Describe what you expected: Build breaks with error: app/build/generated/datadog/buildId/devRelease/datadog.buildId: Resource and asset merger: Duplicate resources Downgrading com.datadoghq.dd-sdk-android-gradle-plugin to 1.12.0 fixes the issue.

0xnm commented 3 months ago

Hi @andresousa! Thanks for reporting it. Can you please share with us version of the our React Native SDK you are using and version of React Native as well?

PetroPavlenko commented 2 months ago

Hi I'm having same issue with

 "react-native": "0.72.5",
 "@datadog/mobile-react-native": "^2.2.0"

Hope this helps

0xnm commented 1 month ago

This should be fixed now in 1.14.0 release, please try it out.