Skip to content

Android Build Error #760

Description

@miridih-chyoon

Describe the bug

> Task :datadog_mobile-react-native-session-replay:compileReleaseKotlin FAILED
e: file://.../node_modules/@datadog/mobile-react-native-session-replay/android/src/rn76/kotlin/com/datadog/reactnative/sessionreplay/utils/ReactViewBackgroundDrawableUtils.kt:9:57 Unresolved reference: convertToDensityNormalized
e: file://.../node_modules/@datadog/mobile-react-native-session-replay/android/src/rn76/kotlin/com/datadog/reactnative/sessionreplay/utils/ReactViewBackgroundDrawableUtils.kt:89:57 Unresolved reference: convertToDensityNormalized

Reproduction steps

./gradlew assembleRelease

SDK logs

No response

Expected behavior

No response

Affected SDK versions

2.5.0-alpha.0

Latest working SDK version

2.4.2

Did you confirm if the latest SDK version fixes the bug?

No

Integration Methods

NPM

React Native Version

0.76.1

Package.json Contents

"@datadog/mobile-react-native": "^2.5.0",
"@datadog/mobile-react-native-code-push": "^2.5.0",
"@datadog/mobile-react-native-session-replay": "^2.5.0-alpha.0",
"@datadog/mobile-react-native-webview": "^2.5.0",
"@datadog/mobile-react-navigation": "^2.5.0",
"react": "^18.3.1",
"react-native": "0.76.1",

iOS Setup

No response

Android Setup

  ext {
        buildToolsVersion = "35.0.0"
        minSdkVersion = 30
        compileSdkVersion = 35
        targetSdkVersion = 34
        ndkVersion = "26.1.10909125"
        kotlinVersion = "1.9.24"
        googlePlayServicesAuthVersion = "20.7.0"
        useExoplayerIMA = true
        useExoplayerRtsp = true
        useExoplayerSmoothStreaming = true
        useExoplayerDash = true
        useExoplayerHls = true
    }

Device Information

No response

Other relevant information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions