Closed Ls9257 closed 3 months ago
I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight.
I tested 10.5.0 and had the same problem, but I changed to other SDKS that worked, such as Admob
Thanks for reaching out, @Ls9257. This issue could be related to this r8 issue. The r8 tool included with lower versions of Gradle doesn't seem to work correctly. Could you try these solutions and see if it works?
24
or
Project Settings > Publishing Settings > Minify > Release/Debug
.Let me know if it works. Thanks!
I was having the same issue and been through all the different Github issue threads and their suggestions. I'm using:
2021.3.43f1
12.2.0
23
auto
Bumping the min sdk version to 24
does work, however, it's not a solution in my case since I have a production app that would remove support for many users. Also, the minifying Release/Debug didnt do anything for me.
So for anyone looking to keep their min sdk version at 23
the combination of these two hacks worked for me:
baseProjecTemplate.gradle
hack to force update r8settingsTemplate.gradle
. inspired by this but I didn't fully follow their instructions, just turned the template on.
Description
Android build fails for Unity project with only Firebase Analytics installed. In my project, I tested Firebase 11.6.0-12.2.0 and all builds failed.
Reproducing the issue
Unity : 2021.3.43f1 Build Target : Android Firebase Analytics : 12.2.0 Gradle Version : 7.4.2 Compile Sdk Version : 34 Minimum Sdk Version : 22 Target Sdk Version : 34
Firebase Unity SDK Version
12.2.0
Unity editor version
2021.3.43f1
Installation Method
.unitypackage
Problematic Firebase Component(s)
Analytics
Other Firebase Component(s) in use
Analytics
Additional SDKs you are using
No
Targeted Platform(s)
Android
Unity editor platform
Windows
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
Assets/Plugins/Android Android.zip