firebase-unity-sdk icon indicating copy to clipboard operation
firebase-unity-sdk copied to clipboard

[Bug] Unity3D 6.2 can not build with Firebase SDk 13.5 for Meta app

Open dorcatty opened this issue 2 months ago • 14 comments

Description

hello

these days, i am going to build an Meta App with Firebase Firestorage sdk enabled. With Unity6.2, we build an app with Meta Core. Interaction SDK v81, build standalone meta app works well without importing firebase SDK,

Once we imported firebase SDK v13.5, we got many errors: But my script works well via Unity Editor, no issue (no issue of configration). only build for Android has this issue:

Could not find manifest/application tag in android manifest.
UnityEngine.Debug:LogError (object)
Meta.XR.Samples.Editor.UpdateManifestWithCodeSample:UpdateManifest (string,System.Collections.Generic.Dictionary`2<string, System.Collections.Generic.HashSet`1<string>>) (at ./Library/PackageCache/com.meta.xr.sdk.core@d6da9ab40659/Scripts/Editor/Util/SampleMetadata/UpdateManifestWithCodeSample.cs:85)
Meta.XR.Samples.Editor.UpdateManifestWithCodeSample:OnPostGenerateGradleAndroidProject (string) (at ./Library/PackageCache/com.meta.xr.sdk.core@d6da9ab40659/Scripts/Editor/Util/SampleMetadata/UpdateManifestWithCodeSample.cs:50)
UnityEditor.EditorApplication:Internal_CallDelayFunctions () (at /Users/bokken/build/output/unity/unity/Editor/Mono/EditorApplication.cs:399)

and another error:

Starting a Gradle Daemon, 1 stopped Daemon could not be reused, use --status for details

> Configure project :unityLibrary
Variant 'debug', will keep symbols in binaries for:
  'libunity.so'
  'libil2cpp.so'
  'libmain.so'
Variant 'release', symbols will be stripped from binaries.

> Configure project :launcher
Variant 'debug', will keep symbols in binaries for:
  'libunity.so'
  'libil2cpp.so'
  'libmain.so'
Variant 'release', symbols will be stripped from binaries.

> Configure project :unityLibrary:FirebaseApp.androidlib
WARNING: minSdkVersion (32) is greater than targetSdkVersion (9) for variant "debug". Please change the values such that minSdkVersion is less than or equal to targetSdkVersion.
WARNING: minSdkVersion (32) is greater than targetSdkVersion (9) for variant "release". Please change the values such that minSdkVersion is less than or equal to targetSdkVersion.

> Task :unityLibrary:xrmanifest.androidlib:preBuild UP-TO-DATE
> Task :unityLibrary:preBuild UP-TO-DATE
> Task :unityLibrary:FirebaseApp.androidlib:preBuild UP-TO-DATE
> Task :unityLibrary:xrmanifest.androidlib:preReleaseBuild UP-TO-DATE
> Task :unityLibrary:FirebaseApp.androidlib:preReleaseBuild UP-TO-DATE
> Task :unityLibrary:preReleaseBuild UP-TO-DATE
> Task :launcher:preBuild UP-TO-DATE
> Task :launcher:preReleaseBuild UP-TO-DATE
> Task :launcher:mergeReleaseNativeDebugMetadata NO-SOURCE
> Task :unityLibrary:FirebaseApp.androidlib:generateReleaseResValues
> Task :unityLibrary:xrmanifest.androidlib:generateReleaseResValues
> Task :unityLibrary:generateReleaseResValues
> Task :unityLibrary:xrmanifest.androidlib:generateReleaseResources
> Task :unityLibrary:FirebaseApp.androidlib:generateReleaseResources
> Task :unityLibrary:generateReleaseResources
> Task :unityLibrary:xrmanifest.androidlib:packageReleaseResources
> Task :unityLibrary:FirebaseApp.androidlib:packageReleaseResources
> Task :unityLibrary:packageReleaseResources
> Task :unityLibrary:xrmanifest.androidlib:javaPreCompileRelease
> Task :unityLibrary:FirebaseApp.androidlib:javaPreCompileRelease
> Task :unityLibrary:javaPreCompileRelease
> Task :unityLibrary:FirebaseApp.androidlib:extractDeepLinksRelease
> Task :unityLibrary:extractDeepLinksRelease
> Task :unityLibrary:xrmanifest.androidlib:extractDeepLinksRelease
> Task :unityLibrary:FirebaseApp.androidlib:writeReleaseAarMetadata
> Task :unityLibrary:writeReleaseAarMetadata
> Task :unityLibrary:xrmanifest.androidlib:writeReleaseAarMetadata
> Task :unityLibrary:xrmanifest.androidlib:parseReleaseLocalResources
> Task :unityLibrary:FirebaseApp.androidlib:parseReleaseLocalResources
> Task :unityLibrary:parseReleaseLocalResources
> Task :unityLibrary:prepareReleaseArtProfile
> Task :unityLibrary:xrmanifest.androidlib:prepareReleaseArtProfile
> Task :unityLibrary:FirebaseApp.androidlib:prepareReleaseArtProfile
> Task :unityLibrary:FirebaseApp.androidlib:compileReleaseLibraryResources
> Task :unityLibrary:xrmanifest.androidlib:compileReleaseLibraryResources

> Task :unityLibrary:xrmanifest.androidlib:processReleaseManifest
package="com.UnityTechnologies.XR.Manifest" found in source AndroidManifest.xml: /Users/nan/Desktop/UnityProjects/TestFirebase/Library/Bee/Android/Prj/IL2CPP/Gradle/unityLibrary/xrmanifest.androidlib/AndroidManifest.xml.
Setting the namespace via the package attribute in the source AndroidManifest.xml is no longer supported, and the value is ignored.
Recommendation: remove package="com.UnityTechnologies.XR.Manifest" from the source AndroidManifest.xml: /Users/nan/Desktop/UnityProjects/TestFirebase/Library/Bee/Android/Prj/IL2CPP/Gradle/unityLibrary/xrmanifest.androidlib/AndroidManifest.xml.

> Task :unityLibrary:FirebaseApp.androidlib:processReleaseManifest
package="com.google.firebase.app.unity" found in source AndroidManifest.xml: /Users/nan/Desktop/UnityProjects/TestFirebase/Library/Bee/Android/Prj/IL2CPP/Gradle/unityLibrary/FirebaseApp.androidlib/AndroidManifest.xml.
Setting the namespace via the package attribute in the source AndroidManifest.xml is no longer supported, and the value is ignored.
Recommendation: remove package="com.google.firebase.app.unity" from the source AndroidManifest.xml: /Users/nan/Desktop/UnityProjects/TestFirebase/Library/Bee/Android/Prj/IL2CPP/Gradle/unityLibrary/FirebaseApp.androidlib/AndroidManifest.xml.

> Task :unityLibrary:xrmanifest.androidlib:generateReleaseRFile
> Task :unityLibrary:FirebaseApp.androidlib:generateReleaseRFile
> Task :unityLibrary:generateReleaseRFile
> Task :unityLibrary:mergeReleaseShaders
> Task :unityLibrary:xrmanifest.androidlib:mergeReleaseShaders
> Task :unityLibrary:FirebaseApp.androidlib:mergeReleaseShaders

> Task :unityLibrary:processReleaseManifest
/Users/nan/Desktop/UnityProjects/TestFirebase/Library/Bee/Android/Prj/IL2CPP/Gradle/unityLibrary/src/main/AndroidManifest.xml:14:5-138 Warning:
	meta-data#com.oculus.supportedDevices@android:value was tagged at AndroidManifest.xml:14 to replace other declarations but no other declaration present

> Task :unityLibrary:compileReleaseShaders NO-SOURCE
> Task :unityLibrary:xrmanifest.androidlib:compileReleaseJavaWithJavac NO-SOURCE
> Task :unityLibrary:generateReleaseAssets UP-TO-DATE
> Task :unityLibrary:FirebaseApp.androidlib:compileReleaseJavaWithJavac NO-SOURCE
> Task :unityLibrary:compileReleaseLibraryResources
> Task :unityLibrary:FirebaseApp.androidlib:bundleLibRuntimeToDirRelease
> Task :unityLibrary:xrmanifest.androidlib:bundleLibRuntimeToDirRelease
> Task :unityLibrary:xrmanifest.androidlib:bundleLibCompileToJarRelease
> Task :unityLibrary:FirebaseApp.androidlib:bundleLibCompileToJarRelease
> Task :unityLibrary:FirebaseApp.androidlib:compileReleaseShaders NO-SOURCE
> Task :unityLibrary:xrmanifest.androidlib:compileReleaseShaders NO-SOURCE
> Task :unityLibrary:xrmanifest.androidlib:generateReleaseAssets UP-TO-DATE
> Task :unityLibrary:FirebaseApp.androidlib:generateReleaseAssets UP-TO-DATE
> Task :unityLibrary:xrmanifest.androidlib:bundleLibRuntimeToJarRelease
> Task :unityLibrary:FirebaseApp.androidlib:bundleLibRuntimeToJarRelease
> Task :unityLibrary:xrmanifest.androidlib:mergeReleaseAssets
> Task :unityLibrary:FirebaseApp.androidlib:mergeReleaseAssets
> Task :unityLibrary:FirebaseApp.androidlib:processReleaseJavaRes NO-SOURCE
> Task :unityLibrary:xrmanifest.androidlib:processReleaseJavaRes NO-SOURCE
> Task :unityLibrary:FirebaseApp.androidlib:createFullJarRelease
> Task :unityLibrary:xrmanifest.androidlib:createFullJarRelease
> Task :unityLibrary:FirebaseApp.androidlib:extractProguardFiles
> Task :unityLibrary:xrmanifest.androidlib:extractProguardFiles
> Task :unityLibrary:mergeReleaseAssets
> Task :launcher:javaPreCompileRelease
> Task :launcher:checkReleaseDuplicateClasses
> Task :launcher:generateReleaseResValues
> Task :launcher:checkReleaseAarMetadata FAILED
> Task :unityLibrary:xrmanifest.androidlib:generateReleaseLintModel
> Task :unityLibrary:FirebaseApp.androidlib:generateReleaseLintModel
> Task :launcher:mapReleaseSourceSetPaths
> Task :unityLibrary:compileReleaseJavaWithJavac

[Incubating] Problems report is available at: file:///Users/nan/Desktop/UnityProjects/TestFirebase/Library/Bee/Android/Prj/IL2CPP/Gradle/build/reports/problems/problems-report.html

Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

For more on this, please refer to https://docs.gradle.org/8.13/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.
57 actionable tasks: 57 executed

UnityEditor.EditorApplication:Internal_CallDelayFunctions () (at /Users/bokken/build/output/unity/unity/Editor/Mono/EditorApplication.cs:399)

i am sure that in my Android Manifest, i have these lines:

application field is given in my case.

could anyone help for this issue ? many thanks

Reproducing the issue

Unity6.2 creat empty scene, add Meta core sdk, Meta interaction SDK add firebase sdk 13.5

build any example with Meta SDK will produce this error

Firebase Unity SDK Version

13.5.0

Unity editor version

6000.2.12f1

Installation Method

.unitypackage

Problematic Firebase Component(s)

Firestore

Other Firebase Component(s) in use

Firestore

Additional SDKs you are using

Meta SDK v81 WebRTC for Unity, v3.0.0

Targeted Platform(s)

Android

Unity editor platform

Mac

Scripting Runtime

IL2CPP

Release Distribution Type

Pre-built SDK from https://firebase.google.com/download/unity

Relevant Log Output


If using CocoaPods for Apple platforms, the project's Podfile.lock

Expand Podfile.lock snippet

👀 Replace this line with the contents of your Podfile.lock!

dorcatty avatar Nov 14 '25 00:11 dorcatty

I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight.

google-oss-bot avatar Nov 14 '25 00:11 google-oss-bot

Hi @dorcatty, thanks for reaching out. I tried setting up a sample app and following along with the steps you shared, but I didn't encounter any issues with building an Android app. What I did was I used our quickstart app for Firestore as a base, then added these SDKs in order:

  • Meta XR Core SDK
  • Meta XR Interaction SDK
  • Firebase Firestore SDK

After that, I initialized the Firestore SDK and tried running my sample in Unity's Playmode then I built an APK file, but I couldn't reproduce the error you encountered in either scenarios. Though I would like to note that I skipped adding WebRTC for Unity. If I'm missing any other step(s) here or if there's something else I should try, please let me know.

Based on the logs you shared, it looks like the issue may be related to your project's gradle files. I'm thinking they aren't being resolved properly during the build process for your app, or there might be a conflict when the dependencies are being resolved. To give us a better idea of what could be causing the error, could you answer the following:

  • Is the EDM4U/Jar Resolver enabled?
  • Could you try using the "Force Resolve" function of the EDM4U before building?
    • You can do this via "Assets>External Dependency Manager>Android Resolver>Force Resolve"
  • Is the "Custom Main Gradle Template" option enabled in your Player Settings?
    • You may locate this in: Project Settings>Player>Publishing Settings>"Custom Main Gradle Template"
  • Have you tried running the command '--warning-mode all'? It might provide us with more insights into the error.
  • Lastly, could you also try testing with our Firestore quickstart app then see if you're also getting an error there?

niccolo-hare avatar Nov 14 '25 18:11 niccolo-hare

Dear @niccolo-hare , thanks for answering me so quickly. What i did is very simple: (by the way, i have MacOS M4, using Unity6.2 silicon version, that might the issue ? )

  • create a new Unity6.2, URP project,
  • enable XR plus-in Management and enable OpenXR,
  • change android API level to 34,
  • add Meta XR Core SDK, Meta XR Interaction SDK,
  • create and register new created Unity App ID with Firebase database via Firebase console, download 'google-services.json' in place it in Unity Assets folder,
  • import Firebase Firesotre SDK, v13.5.0 into Unity Editor,
  • Open a simple example of Meta Interaction SDK, just 'RayExamples.unity' and try to build, then i have this error

Could not find manifest/application tag in android manifest. UnityEngine.Debug:LogError (object) Meta.XR.Samples.Editor.UpdateManifestWithCodeSample:UpdateManifest (string,System.Collections.Generic.Dictionary2<string, System.Collections.Generic.HashSet1<string>>) (at ./Library/PackageCache/com.meta.xr.sdk.core@d6da9ab40659/Scripts/Editor/Util/SampleMetadata/UpdateManifestWithCodeSample.cs:85) Meta.XR.Samples.Editor.UpdateManifestWithCodeSample:OnPostGenerateGradleAndroidProject (string) (at ./Library/PackageCache/com.meta.xr.sdk.core@d6da9ab40659/Scripts/Editor/Util/SampleMetadata/UpdateManifestWithCodeSample.cs:50) UnityEditor.EditorApplication:Internal_CallDelayFunctions () (at /Users/bokken/build/output/unity/unity/Editor/Mono/EditorApplication.cs:399)

however, i double checked, in my Android manifest, i have application tag for sure

Image

i also tried with Force Resolve, and Custom Main Gradle Template enabled, please double check in my screenshot.

Image

I didn't try with quickstart app, only simple scene from Unity,then i got some error of build.

I am pretty sure that without import Firebase SDK, i can successfully build simple Meta sample project and run on Quest goggle.

Image

importing Firebase SDK introduced some configruation error here in my environment.

do you also have Silicon version of Unity Editor ? sometime, this might be the issue ?

dorcatty avatar Nov 15 '25 11:11 dorcatty

Hi @dorcatty, thanks for sharing these details. I couldn't find the "RayExamples.unity" sample that you mentioned, so I used this sample from the Unity Asset store as a base for my testing.

After following along the steps you shared, I was able to build an Android app without issue. I also tried this with an empty project and our quickstart sample just to confirm, but I didn't encounter any errors while building.

To answer your question, I also used the Silicon version of the Unity editor (v6000.2.12f1), but on an M1 machine. Though, I'm thinking the error might be leaning more towards dependencies and how they're resolved by Unity (or possibly due to some missing configuration), rather than the Unity editor version. Could you try checking your Meta project settings and see if there's any required fixes that need to be addressed?

Image

For reference, you can check this via the menu: Meta>Tools>Project Setup Tool>Android tab.

niccolo-hare avatar Nov 18 '25 13:11 niccolo-hare

Same issue found here. For some reason this script UpdateManifestWithCodeSample is checking all the Manifests of the project and the Firebase SDK includes some files that don´t have the application tag.

joaquim-eugenio avatar Nov 20 '25 12:11 joaquim-eugenio

Same issue found here. For some reason this script UpdateManifestWithCodeSample is checking all the Manifests of the project and the Firebase SDK includes some files that doesn´t have the application tag.

Maybe we can try to delete UndateManifestWithCodeSample.cs ....

dorcatty avatar Nov 20 '25 13:11 dorcatty

Actually I´ve added the return to avoid this method and the build worked fine.

Image

joaquim-eugenio avatar Nov 20 '25 13:11 joaquim-eugenio

But this script is placed inside Library folder, so if you delete the repo or anyone else clones it, the bug will occur.

joaquim-eugenio avatar Nov 20 '25 13:11 joaquim-eugenio

Hi @dorcatty, thanks for sharing these details. I couldn't find the "RayExamples.unity" sample that you mentioned, so I used this sample from the Unity Asset store as a base for my testing.

After following along the steps you shared, I was able to build an Android app without issue. I also tried this with an empty project and our quickstart sample just to confirm, but I didn't encounter any errors while building.

To answer your question, I also used the Silicon version of the Unity editor (v6000.2.12f1), but on an M1 machine. Though, I'm thinking the error might be leaning more towards dependencies and how they're resolved by Unity (or possibly due to some missing configuration), rather than the Unity editor version. Could you try checking your Meta project settings and see if there's any required fixes that need to be addressed? Image

For reference, you can check this via the menu: Meta>Tools>Project Setup Tool>Android tab.

RayExamples.unity can be found in Meta Interation SDK->Sample section, see photo here:

Image

I never tested that VR Training Photon Fusion scene, nor QuickStart sample (using Test Framework)...

from flowing screenshot, i confirmed that all items are verified and correct as Meta needs.

Image

From I asked Unity official tech support, they do think is it not Unity issue...

dorcatty avatar Nov 21 '25 22:11 dorcatty

Description

hello

these days, i am going to build an Meta App with Firebase Firestorage sdk enabled. With Unity6.2, we build an app with Meta Core. Interaction SDK v81, build standalone meta app works well without importing firebase SDK,

Once we imported firebase SDK v13.5, we got many errors: But my script works well via Unity Editor, no issue (no issue of configration). only build for Android has this issue:

Could not find manifest/application tag in android manifest.
UnityEngine.Debug:LogError (object)
Meta.XR.Samples.Editor.UpdateManifestWithCodeSample:UpdateManifest (string,System.Collections.Generic.Dictionary`2<string, System.Collections.Generic.HashSet`1<string>>) (at ./Library/PackageCache/com.meta.xr.sdk.core@d6da9ab40659/Scripts/Editor/Util/SampleMetadata/UpdateManifestWithCodeSample.cs:85)
Meta.XR.Samples.Editor.UpdateManifestWithCodeSample:OnPostGenerateGradleAndroidProject (string) (at ./Library/PackageCache/com.meta.xr.sdk.core@d6da9ab40659/Scripts/Editor/Util/SampleMetadata/UpdateManifestWithCodeSample.cs:50)
UnityEditor.EditorApplication:Internal_CallDelayFunctions () (at /Users/bokken/build/output/unity/unity/Editor/Mono/EditorApplication.cs:399)

and another error:

Starting a Gradle Daemon, 1 stopped Daemon could not be reused, use --status for details

> Configure project :unityLibrary
Variant 'debug', will keep symbols in binaries for:
  'libunity.so'
  'libil2cpp.so'
  'libmain.so'
Variant 'release', symbols will be stripped from binaries.

> Configure project :launcher
Variant 'debug', will keep symbols in binaries for:
  'libunity.so'
  'libil2cpp.so'
  'libmain.so'
Variant 'release', symbols will be stripped from binaries.

> Configure project :unityLibrary:FirebaseApp.androidlib
WARNING: minSdkVersion (32) is greater than targetSdkVersion (9) for variant "debug". Please change the values such that minSdkVersion is less than or equal to targetSdkVersion.
WARNING: minSdkVersion (32) is greater than targetSdkVersion (9) for variant "release". Please change the values such that minSdkVersion is less than or equal to targetSdkVersion.

> Task :unityLibrary:xrmanifest.androidlib:preBuild UP-TO-DATE
> Task :unityLibrary:preBuild UP-TO-DATE
> Task :unityLibrary:FirebaseApp.androidlib:preBuild UP-TO-DATE
> Task :unityLibrary:xrmanifest.androidlib:preReleaseBuild UP-TO-DATE
> Task :unityLibrary:FirebaseApp.androidlib:preReleaseBuild UP-TO-DATE
> Task :unityLibrary:preReleaseBuild UP-TO-DATE
> Task :launcher:preBuild UP-TO-DATE
> Task :launcher:preReleaseBuild UP-TO-DATE
> Task :launcher:mergeReleaseNativeDebugMetadata NO-SOURCE
> Task :unityLibrary:FirebaseApp.androidlib:generateReleaseResValues
> Task :unityLibrary:xrmanifest.androidlib:generateReleaseResValues
> Task :unityLibrary:generateReleaseResValues
> Task :unityLibrary:xrmanifest.androidlib:generateReleaseResources
> Task :unityLibrary:FirebaseApp.androidlib:generateReleaseResources
> Task :unityLibrary:generateReleaseResources
> Task :unityLibrary:xrmanifest.androidlib:packageReleaseResources
> Task :unityLibrary:FirebaseApp.androidlib:packageReleaseResources
> Task :unityLibrary:packageReleaseResources
> Task :unityLibrary:xrmanifest.androidlib:javaPreCompileRelease
> Task :unityLibrary:FirebaseApp.androidlib:javaPreCompileRelease
> Task :unityLibrary:javaPreCompileRelease
> Task :unityLibrary:FirebaseApp.androidlib:extractDeepLinksRelease
> Task :unityLibrary:extractDeepLinksRelease
> Task :unityLibrary:xrmanifest.androidlib:extractDeepLinksRelease
> Task :unityLibrary:FirebaseApp.androidlib:writeReleaseAarMetadata
> Task :unityLibrary:writeReleaseAarMetadata
> Task :unityLibrary:xrmanifest.androidlib:writeReleaseAarMetadata
> Task :unityLibrary:xrmanifest.androidlib:parseReleaseLocalResources
> Task :unityLibrary:FirebaseApp.androidlib:parseReleaseLocalResources
> Task :unityLibrary:parseReleaseLocalResources
> Task :unityLibrary:prepareReleaseArtProfile
> Task :unityLibrary:xrmanifest.androidlib:prepareReleaseArtProfile
> Task :unityLibrary:FirebaseApp.androidlib:prepareReleaseArtProfile
> Task :unityLibrary:FirebaseApp.androidlib:compileReleaseLibraryResources
> Task :unityLibrary:xrmanifest.androidlib:compileReleaseLibraryResources

> Task :unityLibrary:xrmanifest.androidlib:processReleaseManifest
package="com.UnityTechnologies.XR.Manifest" found in source AndroidManifest.xml: /Users/nan/Desktop/UnityProjects/TestFirebase/Library/Bee/Android/Prj/IL2CPP/Gradle/unityLibrary/xrmanifest.androidlib/AndroidManifest.xml.
Setting the namespace via the package attribute in the source AndroidManifest.xml is no longer supported, and the value is ignored.
Recommendation: remove package="com.UnityTechnologies.XR.Manifest" from the source AndroidManifest.xml: /Users/nan/Desktop/UnityProjects/TestFirebase/Library/Bee/Android/Prj/IL2CPP/Gradle/unityLibrary/xrmanifest.androidlib/AndroidManifest.xml.

> Task :unityLibrary:FirebaseApp.androidlib:processReleaseManifest
package="com.google.firebase.app.unity" found in source AndroidManifest.xml: /Users/nan/Desktop/UnityProjects/TestFirebase/Library/Bee/Android/Prj/IL2CPP/Gradle/unityLibrary/FirebaseApp.androidlib/AndroidManifest.xml.
Setting the namespace via the package attribute in the source AndroidManifest.xml is no longer supported, and the value is ignored.
Recommendation: remove package="com.google.firebase.app.unity" from the source AndroidManifest.xml: /Users/nan/Desktop/UnityProjects/TestFirebase/Library/Bee/Android/Prj/IL2CPP/Gradle/unityLibrary/FirebaseApp.androidlib/AndroidManifest.xml.

> Task :unityLibrary:xrmanifest.androidlib:generateReleaseRFile
> Task :unityLibrary:FirebaseApp.androidlib:generateReleaseRFile
> Task :unityLibrary:generateReleaseRFile
> Task :unityLibrary:mergeReleaseShaders
> Task :unityLibrary:xrmanifest.androidlib:mergeReleaseShaders
> Task :unityLibrary:FirebaseApp.androidlib:mergeReleaseShaders

> Task :unityLibrary:processReleaseManifest
/Users/nan/Desktop/UnityProjects/TestFirebase/Library/Bee/Android/Prj/IL2CPP/Gradle/unityLibrary/src/main/AndroidManifest.xml:14:5-138 Warning:
	meta-data#com.oculus.supportedDevices@android:value was tagged at AndroidManifest.xml:14 to replace other declarations but no other declaration present

> Task :unityLibrary:compileReleaseShaders NO-SOURCE
> Task :unityLibrary:xrmanifest.androidlib:compileReleaseJavaWithJavac NO-SOURCE
> Task :unityLibrary:generateReleaseAssets UP-TO-DATE
> Task :unityLibrary:FirebaseApp.androidlib:compileReleaseJavaWithJavac NO-SOURCE
> Task :unityLibrary:compileReleaseLibraryResources
> Task :unityLibrary:FirebaseApp.androidlib:bundleLibRuntimeToDirRelease
> Task :unityLibrary:xrmanifest.androidlib:bundleLibRuntimeToDirRelease
> Task :unityLibrary:xrmanifest.androidlib:bundleLibCompileToJarRelease
> Task :unityLibrary:FirebaseApp.androidlib:bundleLibCompileToJarRelease
> Task :unityLibrary:FirebaseApp.androidlib:compileReleaseShaders NO-SOURCE
> Task :unityLibrary:xrmanifest.androidlib:compileReleaseShaders NO-SOURCE
> Task :unityLibrary:xrmanifest.androidlib:generateReleaseAssets UP-TO-DATE
> Task :unityLibrary:FirebaseApp.androidlib:generateReleaseAssets UP-TO-DATE
> Task :unityLibrary:xrmanifest.androidlib:bundleLibRuntimeToJarRelease
> Task :unityLibrary:FirebaseApp.androidlib:bundleLibRuntimeToJarRelease
> Task :unityLibrary:xrmanifest.androidlib:mergeReleaseAssets
> Task :unityLibrary:FirebaseApp.androidlib:mergeReleaseAssets
> Task :unityLibrary:FirebaseApp.androidlib:processReleaseJavaRes NO-SOURCE
> Task :unityLibrary:xrmanifest.androidlib:processReleaseJavaRes NO-SOURCE
> Task :unityLibrary:FirebaseApp.androidlib:createFullJarRelease
> Task :unityLibrary:xrmanifest.androidlib:createFullJarRelease
> Task :unityLibrary:FirebaseApp.androidlib:extractProguardFiles
> Task :unityLibrary:xrmanifest.androidlib:extractProguardFiles
> Task :unityLibrary:mergeReleaseAssets
> Task :launcher:javaPreCompileRelease
> Task :launcher:checkReleaseDuplicateClasses
> Task :launcher:generateReleaseResValues
> Task :launcher:checkReleaseAarMetadata FAILED
> Task :unityLibrary:xrmanifest.androidlib:generateReleaseLintModel
> Task :unityLibrary:FirebaseApp.androidlib:generateReleaseLintModel
> Task :launcher:mapReleaseSourceSetPaths
> Task :unityLibrary:compileReleaseJavaWithJavac

[Incubating] Problems report is available at: file:///Users/nan/Desktop/UnityProjects/TestFirebase/Library/Bee/Android/Prj/IL2CPP/Gradle/build/reports/problems/problems-report.html

Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

For more on this, please refer to https://docs.gradle.org/8.13/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.
57 actionable tasks: 57 executed

UnityEditor.EditorApplication:Internal_CallDelayFunctions () (at /Users/bokken/build/output/unity/unity/Editor/Mono/EditorApplication.cs:399)

i am sure that in my Android Manifest, i have these lines:

application field is given in my case.

could anyone help for this issue ? many thanks

Reproducing the issue

Unity6.2 creat empty scene, add Meta core sdk, Meta interaction SDK add firebase sdk 13.5

build any example with Meta SDK will produce this error

Firebase Unity SDK Version

13.5.0

Unity editor version

6000.2.12f1

Installation Method

.unitypackage

Problematic Firebase Component(s)

Firestore

Other Firebase Component(s) in use

Firestore

Additional SDKs you are using

Meta SDK v81 WebRTC for Unity, v3.0.0

Targeted Platform(s)

Android

Unity editor platform

Mac

Scripting Runtime

IL2CPP

Release Distribution Type

Pre-built SDK from https://firebase.google.com/download/unity

Relevant Log Output

If using CocoaPods for Apple platforms, the project's Podfile.lock

Expand Podfile.lock snippet

Hi! @dorcatty I’m having the same issue. Any chance you found a solution?

vasanthakumarGit avatar Nov 27 '25 14:11 vasanthakumarGit

Hello, @vasanthakumarGit at the moment, we dont have solution, you can try this, to edit the code of @joaquim-eugenio proposed. i am still waiting for the official answer here :)

best Nan

Actually I´ve added the return to avoid this method and the build worked fine. Image

dorcatty avatar Nov 27 '25 14:11 dorcatty

Hi @dorcatty, apologies for the delayed response. I had some difficulty getting the same error message with the RayExamples.unity sample, but I found a way to reproduce the issue using our Firestore Quickstart sample. I'm not quite sure what's causing it but it seems to particularly occur with the Firestore SDK. I've tried isolating it to other SDKs such as GA and FCM, but I didn't encounter any errors.

I've already raised this to our engineers to get more in-depth insights on its behavior. I don't have any details yet and I can't provide you with a time line of when they would be able to respond, but I'll update here as soon as I have more information to share or if I need more details from you.

niccolo-hare avatar Dec 09 '25 15:12 niccolo-hare

Dear @niccolo-hare thanks a lot for the update. OK, let us wait for an official solution about this issue. Best

dorcatty avatar Dec 10 '25 09:12 dorcatty

Unfortunately, I am having trouble reproducing an actual problem on my end. I can see the error logs about the missing tags, which I don't think there is anything we can really do on the Firebase side about, but the build succeeds for me anyway, which looking at the Meta code makes sense.

Is there another error that you are seeing that is actually causing the build to fail? The second log that was provided doesn't seem to contain any errors, just warnings.

a-maurice avatar Dec 11 '25 21:12 a-maurice