-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug] Namespace not specified in unityLibrary:FirebaseApp.androidlib build.gradle #1077
Comments
I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight. |
Thanks for the report, @NudeNULL. It looks like it could be a consequental issue, similar to #1070. That said, could you try the solution by one of the developers:
|
As I wrote in my original message, we are already using those And the AGP is indeed 8.1.1. I am not sure why you suggested this solution because specifically because of using AGP 8.1.1 now the build.gradle have to use the namespace property, and remove the package one from Android Manifest, which Firebase SDK is not doing even if it requires 8.1.1. It is quite contradictional, why would Firebase be released with requirement to use AGP 8.1.1 and target API 34, when it doesn't even support it in the first place. So I am looking forward for discussion, maybe I am wrong and did implement something incorectly :D |
Thanks for the update, @NudeNULL. Sorry for the misunderstanding, there's been quite a few issues that came up with the API level 34, and I thought this was similar.
So for context, the way Firebase Unity SDK works is that it acts like a wrapper where it bridges the platform specific SDK. In this case, since the Firebase Android SDK released breaking changes. This will be added in the release of the Unity SDK.
The Firebase Android SDK needs to update to Now for the issue at hand, I'm not sure why the The only difference that I can think of is that the Unity Editor's latest version might have some changes related to the API level 34 support. Could you try updating to the latest version |
Sure, I will try to update to 2022.3.39 and get back to you |
Oh actually sorry, I see that you displayed a screenshot of the build.gradle file from unityLibrary, this one is good on my side as well, but when trying to build it requires me to add namespace for unityLibrary:FirebaseApp.androidlib build.gradle, other file, that is generated separately |
I got it also generated correctly, so the Unity version is the solution indeed, seems like they fixed something specifically in .39 version Thanks! |
Awesome, glad to hear it works. |
Description
I expected the Unity project to build in Android Studio without issues
The actual result is that the project builds with this error:
What went wrong:
A problem occurred configuring project ':unityLibrary:FirebaseApp.androidlib'.
Reproducing the issue
We had to increase the target api level to 34 and respectevily the gradle version to 8.0.
This upgrade introduced some changes, where 2 of them are critical in order to be able to build:
Firebase Unity SDK Version
11.9.0 & 12.1.0
Unity editor version
2022.3.34
Installation Method
.unitypackage
Problematic Firebase Component(s)
Analytics
Other Firebase Component(s) in use
No response
Additional SDKs you are using
I think it doesn't matter
Targeted Platform(s)
Android
Unity editor platform
Mac, Windows
Scripting Runtime
IL2CPP
Release Distribution Type
Pre-built SDK from https://firebase.google.com/download/unity
Relevant Log Output
I can't build, so no logs here
If using CocoaPods for Apple platforms, the project's Podfile.lock
Expand
Podfile.lock
snippetIt's not an iOS build
The text was updated successfully, but these errors were encountered: