Skip to content

Cannot build on Android with React Native 0.82 when using mobile-react-native/datadog-sourcemaps.gradleΒ #1017

@alexnaiman

Description

@alexnaiman

Describe the issue

After upgrading React Native to version 0.82, I encountered build issues on Android related to the Datadog Gradle script:
@datadog/mobile-react-native/datadog-sourcemaps.gradle

Where:

Script '/path/to/project/node_modules/@datadog/mobile-react-native/datadog-sourcemaps.gradle' line: 83

What went wrong:

Execution failed for task ':app:uploadStagingDebugSourcemaps'.
JS bundle file doesn't exist, aborting upload.

I tried patching the Gradle script to point to the correct JS bundle paths, but then ran into additional errors with copyDebugId and runShellCommand.

Reproduction steps

  1. Create a project with react native 0.82
  2. Integrate @datadog/mobile-react-native
  3. Add mobile-react-native/datadog-sourcemaps.gradle to build.gradle
  4. Build the app on Android (react-native run-android)

SDK logs

No response

Device Information

No response

SDK version

2.12.3

Integration Methods

Yarn

React Native Version

0.82.0

Package.json Contents

No response

iOS Setup

No response

Android Setup

No response

Other relevant information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions