Skip to content

Version 8.14.0 breaks resources merging #4516

@jschmid

Description

@jschmid

Integration

sentry-android

Build System

Gradle

AGP Version

8.13

Proguard

Enabled

Version

8.14.0

Steps to Reproduce

Declare attributes in your app. For example:

    <declare-styleable name="RoundedButton">
        <attr name="android:enabled" format="boolean" />
        <attr name="android:background" format="reference" />
    </declare-styleable>

Integrate Sentry 8.13.3 => Compiles
Upgrade to 8.14.0 => Compilation failures

Expected Result

Sentry does not clash with our app's code.

Actual Result

Output from ./gradlew assembleDebug

> Task :app:mergeDebugResources
/home/xxxx/.gradle/caches/8.13/transforms/09bcb44bfb4b47d04d160d0bc6cd78b0/transformed/sentry-android-core-8.14.0/res/values/values.xml:2:4: Duplicate value for resource 'android:attr/background' with config 'DEFAULT' and product ''. Resource was previously defined here: com.xxx-mergeDebugResources-154:/values/values.xml:17577: .

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions