Google Firebabse Integration Error | Unity 5.3 | .net 3.5

Updated on September 8, 2019 in [A] Unity Scripting
Share on Facebook0Tweet about this on TwitterShare on Google+0Share on Reddit0
0 on September 8, 2019

Hello again Brackeys,

 

I am posting after a long time, hope everything is good. 

 

I am running in a problem while integrating the firebase database package in my game. Earlier there was Api incompatibility error which I solved by updating the SDK but I am still getting these error from firebase plugins:
——————————————————————————————————————————-

Error 1:
Error: [Temp\StagingArea\AndroidManifest-main.xml, C:\Users\Public\Documents\LO SHU GRID – MANGLAM\Temp\StagingArea\android-libraries\com.google.firebase.firebase-auth-19.0.0\AndroidManifest.xml:8] Trying to merge incompatible /manifest/application/service[@name=com.google.firebase.components.ComponentDiscoveryService] element:

 

UnityEditor.HostView:OnGUI()

——————————————————————————————————————————-

Error 2:
Error: [Temp\StagingArea\AndroidManifest-main.xml, C:\Users\Public\Documents\LO SHU GRID – MANGLAM\Temp\StagingArea\android-libraries\com.google.firebase.firebase-database-19.0.0\AndroidManifest.xml:11] Trying to merge incompatible /manifest/application/service[@name=com.google.firebase.components.ComponentDiscoveryService] element:

UnityEditor.HostView:OnGUI()

——————————————————————————————————————————-

Error 3:
Error: [Temp\StagingArea\AndroidManifest-main.xml, C:\Users\Public\Documents\LO SHU GRID – MANGLAM\Temp\StagingArea\android-libraries\com.google.firebase.firebase-iid-19.0.0\AndroidManifest.xml:12] Trying to merge incompatible /manifest/application/service[@name=com.google.firebase.components.ComponentDiscoveryService] element:

 

UnityEditor.HostView:OnGUI()

——————————————————————————————————————————-

Error 4:
CommandInvokationFailure: Unable to merge android manifests. See the Console for more details.
C:/Program Files/Java/jdk1.8.0_111\bin\java.exe -Xmx2048M -Dcom.android.sdkmanager.toolsdir=”C:\Users\dell-pc\AppData\Local\Android\sdk\tools” -Dfile.encoding=UTF8 -jar “C:\Program Files\Unity\Editor\Data\PlaybackEngines\AndroidPlayer/Tools\sdktools.jar” –

 

stderr[
Error: [Temp\StagingArea\AndroidManifest-main.xml, C:\Users\Public\Documents\LO SHU GRID – MANGLAM\Temp\StagingArea\android-libraries\com.google.firebase.firebase-auth-19.0.0\AndroidManifest.xml:8] Trying to merge incompatible /manifest/application/service[@name=com.google.firebase.components.ComponentDiscoveryService] element:
<service
@android:name=”com.google.firebase.components.ComponentDiscoveryService”>
<meta-data
— @android:name=”com.google.firebase.components:com.google.firebase.analytics.connector.internal.AnalyticsConnectorRegistrar”
<service
@android:name=”com.google.firebase.components.ComponentDiscoveryService”>
<meta-data
++ @android:name=”com.google.firebase.components:com.google.firebase.auth.FirebaseAuthRegistrar”
Error: [Temp\StagingArea\AndroidManifest-main.xml, C:\Users\Public\Documents\LO SHU GRID – MANGLAM\Temp\StagingArea\android-libraries\com.google.firebase.firebase-database-19.0.0\AndroidManifest.xml:11] Trying to merge incompatible /manifest/application/service[@name=com.google.firebase.components.ComponentDiscoveryService] element:
<service
@android:name=”com.google.firebase.components.ComponentDiscoveryService”>
<meta-data
— @android:name=”com.google.firebase.components:com.google.firebase.analytics.connector.internal.AnalyticsConnectorRegistrar”
<service
@android:name=”com.google.firebase.components.ComponentDiscoveryService”>
<meta-data
++ @android:name=”com.google.firebase.components:com.google.firebase.database.DatabaseRegistrar”
Error: [Temp\StagingArea\AndroidManifest-main.xml, C:\Users\Public\Documents\LO SHU GRID – MANGLAM\Temp\StagingArea\android-libraries\com.google.firebase.firebase-iid-19.0.0\AndroidManifest.xml:12] Trying to merge incompatible /manifest/application/service[@name=com.google.firebase.components.ComponentDiscoveryService] element:
<service
@android:name=”com.google.firebase.components.ComponentDiscoveryService”>
<meta-data
— @android:name=”com.google.firebase.components:com.google.firebase.analytics.connector.internal.AnalyticsConnectorRegistrar”
<service
@android:name=”com.google.firebase.components.ComponentDiscoveryService”>
<meta-data
++ @android:name=”com.google.firebase.components:com.google.firebase.iid.Registrar”
]
stdout[
[Temp\StagingArea\AndroidManifest-main.xml, C:\Users\Public\Documents\LO SHU GRID – MANGLAM\Temp\StagingArea\android-libraries\com.google.android.gms.play-services-measurement-impl-17.1.0\AndroidManifest.xml:12] Skipping identical /manifest/application/receiver[@name=com.google.android.gms.measurement.AppMeasurementInstallReferrerReceiver] element.
]
UnityEditor.Android.Command.Run (System.Diagnostics.ProcessStartInfo psi, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg)
UnityEditor.Android.AndroidSDKTools.RunCommandInternal (System.String javaExe, System.String sdkToolsDir, System.String[] sdkToolCommand, Int32 memoryMB, System.String workingdir, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg)
UnityEditor.Android.AndroidSDKTools.RunCommandSafe (System.String javaExe, System.String sdkToolsDir, System.String[] sdkToolCommand, Int32 memoryMB, System.String workingdir, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg)
UnityEditor.HostView:OnGUI()

——————————————————————————————————————————-

Error 5:
Error building Player: CommandInvokationFailure: Unable to merge android manifests. See the Console for more details.
C:/Program Files/Java/jdk1.8.0_111\bin\java.exe -Xmx2048M -Dcom.android.sdkmanager.toolsdir=”C:\Users\dell-pc\AppData\Local\Android\sdk\tools” -Dfile.encoding=UTF8 -jar “C:\Program Files\Unity\Editor\Data\PlaybackEngines\AndroidPlayer/Tools\sdktools.jar” –

 

stderr[
Error: [Temp\StagingArea\AndroidManifest-main.xml, C:\Users\Public\Documents\LO SHU GRID – MANGLAM\Temp\StagingArea\android-libraries\com.google.firebase.firebase-auth-19.0.0\AndroidManifest.xml:8] Trying to merge incompatible /manifest/application/service[@name=com.google.firebase.components.ComponentDiscoveryService] element:
<service
@android:name=”com.google.firebase.components.ComponentDiscoveryService”>
<meta-data
— @android:name=”com.google.firebase.components:com.google.firebase.analytics.connector.internal.AnalyticsConnectorRegistrar”
<service
@android:name=”com.google.firebase.components.ComponentDiscoveryService”>
<meta-data
++ @android:name=”com.google.firebase.components:com.google.firebase.auth.FirebaseAuthRegistrar”
Error: [Temp\StagingArea\AndroidManifest-main.xml, C:\Users\Public\Documents\LO SHU GRID – MANGLAM\Temp\StagingArea\android-libraries\com.google.firebase.firebase-database-19.0.0\AndroidManifest.xml:11] Trying to merge incompatible /manifest/application/service[@name=com.google.firebase.components.ComponentDiscoveryService] element:
<service
@android:name=”com.google.firebase.components.ComponentDiscoveryService”>
<meta-data
— @android:name=”com.google.firebase.components:com.google.firebase.analytics.connector.internal.AnalyticsConnectorRegistrar”
<service
@android:name=”com.google.firebase.components.ComponentDiscoveryService”>
<meta-data
++ @android:name=”com.google.firebase.components:com.google.firebase.database.DatabaseRegistrar”
Error: [Temp\StagingArea\AndroidManifest-main.xml, C:\Users\Public\Documents\LO SHU GRID – MANGLAM\Temp\StagingArea\android-libraries\com.google.firebase.firebase-iid-19.0.0\AndroidManifest.xml:12] Trying to merge incompatible /manifest/application/service[@name=com.google.firebase.components.ComponentDiscoveryService] element:
<service
@android:name=”com.google.firebase.components.ComponentDiscoveryService”>
<meta-data
— @android:name=”com.google.firebase.components:com.google.firebase.analytics.connector.internal.AnalyticsConnectorRegistrar”
<service
@android:name=”com.google.firebase.components.ComponentDiscoveryService”>
<meta-data
++ @android:name=”com.google.firebase.components:com.google.firebase.iid.Registrar”
]
stdout[
[Temp\StagingArea\AndroidManifest-main.xml, C:\Users\Public\Documents\LO SHU GRID – MANGLAM\Temp\StagingArea\android-libraries\com.google.android.gms.play-services-measurement-impl-17.1.0\AndroidManifest.xml:12] Skipping identical /manifest/application/receiver[@name=com.google.android.gms.measurement.AppMeasurementInstallReferrerReceiver] element.
]

Can anyone help me in solve this error? It has already delayed the Production by a whole week and yes game runs fine when I run in it unity but errors come when I build it.

 

Thanks in advance.

  • Liked by
Reply