Skip to content

App Icon is replacing when use: tools:replace="android:theme" #9

@aasif-306

Description

@aasif-306

Hi Team,

I'm encountering an issue while integrating the @digiotech/react-native package into my project. Specifically, when I add tools:replace="android:theme" in the tag of my AndroidManifest.xml to resolve a manifest merge conflict, it removes my app icon. Moreover, even if I upload the bundle to the Google Play Console, the app gets rejected.

However, if I do not include tools:replace="android:theme", I encounter the following build error:

* What went wrong:
Execution failed for task ':app:processDebugMainManifest'.
> Manifest merger failed : Attribute application@theme value=(@style/AppTheme.NoActionBar) from AndroidManifest.xml:26:7-50
        is also present at [com.github.digio-tech:protean-esign:v3.2] AndroidManifest.xml:63:9-40 value=(@style/AppTheme).
        Suggestion: add 'tools:replace="android:theme"' to <application> element at AndroidManifest.xml:5:5-8:50 to override.

Could you please help me resolve this conflict in a way that doesn't interfere with the app icon or cause Play Store rejection?

Here are the versions I'm using:

@digiotech/react-native: ^2.0.2
react-native: ^0.75.0

Thank you — looking forward to your guidance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions