Skip to content

Using firebase-auth generates a manifest merger warning. #4190

@ansman

Description

@ansman
  • Android Studio version: Android Studio Dolphin | 2021.3.1
  • Firebase Component: Auth
  • Component version: 19.4.0

Describe the problem

When using firebase-auth a warning is generated while merging the app manifest with the following error:

> Task :app:processDebugMainManifest
/path/to/repo/app/src/main/AndroidManifest.xml:24:9-31:50 Warning:
        activity#com.google.firebase.auth.internal.FederatedSignInActivity@android:launchMode was tagged at AndroidManifest.xml:24 to replace other declarations but no other declaration present

This is because the manifest looks like this in firebase-auth:

<activity
    android:name="com.google.firebase.auth.internal.FederatedSignInActivity"
    android:excludeFromRecents="true"
    android:exported="true"
    android:launchMode="singleTask"
    android:permission="com.google.firebase.auth.api.gms.permission.LAUNCH_FEDERATED_SIGN_IN"
    android:theme="@android:style/Theme.Translucent.NoTitleBar"
    tools:replace="android:launchMode" />
    <!--       ^ this is the problem and isn't needed -->

The indicated line could probably be removed.

Steps to reproduce:

Just include the firebase-auth component and run processDebugMainManifest or assemble

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