firebase / firebase-unity-sdk

The Firebase SDK for Unity
http://firebase.google.com
Apache License 2.0
220 stars 35 forks source link

[Bug] Firebase Messaging SDK requires Android Min SDK version 24 but min SDK 23 is mentioned ChangeLogs of 12.0.0 #1122

Open Awais6 opened 2 hours ago

Awais6 commented 2 hours ago

Description

Firebase Messaging SDK requires Android Min SDK version 24 but not defined in changelog and it should work fine with minSDK 23 as mentioned in the changelogs of Firebase SDK 12.0.0.

Reproducing the issue

Install Firebase Messaging SDK 12.3.0 and try to build by defining 23 as minSDK in Unity Project Settings.

Firebase Unity SDK Version

12.3.0

Unity editor version

2021.3.42f1

Installation Method

.unitypackage

Problematic Firebase Component(s)

Messaging

Other Firebase Component(s) in use

Analytics, Authentication, Crashlytics, Database, Firestore, Functions, Remote Config

Additional SDKs you are using

Unity Ads

Targeted Platform(s)

Android

Unity editor platform

Linux

Scripting Runtime

IL2CPP

Release Distribution Type

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

Relevant Log Output

stderr[
/root/project/Library/Bee/Android/Prj/IL2CPP/Gradle/launcher/src/main/AndroidManifest.xml Error:
        uses-sdk:minSdkVersion 23 cannot be smaller than version 24 declared in library [:firebase-messaging-cpp:] /root/.gradle/caches/transforms-3/c45ccf72757dbf30efe6877036598e6b/transformed/jetified-firebase-messaging-cpp/AndroidManifest.xml as the library might be using APIs not available in 23
        Suggestion: use a compatible library with a minSdk of at most 23,
                or increase this project's minSdk version to at least 24,
                or use tools:overrideLibrary="com.google.android.gms.messaging.cpp" to force usage (may lead to runtime failures)
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.

FAILURE: Build completed with 2 failures.

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

Expand Podfile.lock snippet
```yml đź‘€ Replace this line with the contents of your Podfile.lock! ```
google-oss-bot commented 2 hours ago

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