Skip to content

[Bug] Firebase Unity SDK 12.10.1 – Java 11 Conflict with Unity 2021.3.21f1 Android Build #1304

@elifsenakuru

Description

@elifsenakuru

Description

Hi,

I'm using Unity Editor 2021.3.21f1 and recently upgraded Firebase from Unity SDK 12.1.0 to 12.10.1. minSdkVersion is 23 and targetSdkVersion is 34.

After the upgrade, my Android build fails with the following error:

MessageForwardingService.class has wrong version 55.0, should be 52.0

From what I understand, this suggests that some Firebase libraries (e.g., firebase-messaging) are now compiled with Java 11 (class file version 55), but Unity 2021.3 appears to expect Java 8 compatibility (class file version 52).

I reviewed the release notes but didn’t see any mention of updated Gradle, Java, or Unity Editor requirements.

Does Firebase SDK 12.10.1 now officially require Java 11?

Have there been any minimum required Unity Editor or Gradle version changes that could explain this?

Is Unity 2021.3.21f1 still supported with Firebase 12.10.1?

Thanks in advance for your help!

Reproducing the issue

No response

Firebase Unity SDK Version

12.10.1

Unity editor version

2021.3.21f1

Installation Method

.unitypackage

Problematic Firebase Component(s)

Messaging

Other Firebase Component(s) in use

App Check, Crashlytics, Analytics

Additional SDKs you are using

Facebook, Helpshift, Android

Targeted Platform(s)

Android, Apple Platforms

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!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions