Failed merging manifests: java.lang.RuntimeException: Failed to merge manifests: com.android.manifmerger.MergingReport@5de7b7ba

After adding firebase-analytics extension using https://github.com/defold/extension-firebase-analytics,
the system provides an error message when building an Android version.

i have done Setup for Android

Remove following lines from your AndroidManifest.xml
<!-- Disable Firebase Analytics --> <meta-data android:name=“firebase_analytics_collection_deactivated” android:value=“true” />

google-services.xml folder structure

30%20AM

Open game.project and set the Bundle Resources entry under the Project section to /bundle to match the folder created in the step above.

firebase.init() function called when script’s init function

add firebase log event

please help me

@AGulev can you please assist? It’s it possible to bundle the example project that is part of the extension project?

Hi, this is an error in AdMob Manifest for merging tool:

instead

        <provider
            android:name="com.google.firebase.provider.FirebaseInitProvider"
            android:authorities="com.defold.adtest.firebaseinitprovider"
            android:exported="false"
            android:initOrder="100" />

should be:

        <provider
            android:name="com.google.firebase.provider.FirebaseInitProvider"
            android:authorities="{{android.package}}.firebaseinitprovider"
            android:exported="false"
            android:initOrder="100" />

I hope @sergey.lerg could fix it soon or you can make PR yourself :

Also, would be better to replace :

<category android:name="com.defold.adtest" />

with

<category android:name="{{android.package}}" />
3 Likes

I hoped I could push it with an overall update of the extension, going to push it now. Thanks.

1 Like

Pushed the fix.

2 Likes

After fetch libraries system provide this error
Error:
/manifiest/AndroidManifest.xml
Failed merging manifests: java.lang.RuntimeException: Failed to merge manifests: com.android.manifmerger.MergingReport@222c3c8d

Can you try again?

1 Like