8000 Error: uses-sdk:minSdkVersion 21 cannot be smaller than version 23 declared in library [com.google.firebase:firebase-auth:23.0.0] · Issue #63 · YoYoGames/GMEXT-Firebase · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Error: uses-sdk:minSdkVersion 21 cannot be smaller than version 23 declared in library [com.google.firebase:firebase-auth:23.0.0] #63

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

Open
npapalia opened this issue Apr 9, 2025 · 14 comments
Assignees
Labels
extension This issue is to do with any of the official extensions Firebase This issue affects the specific named extension

Comments

@npapalia
Copy link
npapalia commented Apr 9, 2025

One of my developers encountered this error when using the Firebase extension for Android, currently we have the setup, analytics, and authentication simultaneously enabled. I'm wondering if this is due to the extension parts not being compatible with each other.

> Task :com.athenianrhapsody.goobiegarden:processDebugMainManifest FAILED
package="com.athenianrhapsody.goobiegarden" found in source AndroidManifest.xml: C:\Users\Aeon\AppData\Roaming\GameMakerStudio2\Cache\GMS2CACHE\RhapsodyBa_F4B22EA7\android\Default\com.athenianrhapsody.goobiegarden\src\main\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.athenianrhapsody.goobiegarden" from the source AndroidManifest.xml: C:\Users\Aeon\AppData\Roaming\GameMakerStudio2\Cache\GMS2CACHE\RhapsodyBa_F4B22EA7\android\Default\com.athenianrhapsody.goobiegarden\src\main\AndroidManifest.xml.
C:\Users\Aeon\AppData\Roaming\GameMakerStudio2\Cache\GMS2CACHE\RhapsodyBa_F4B22EA7\android\Default\com.athenianrhapsody.goobiegarden\src\main\AndroidManifest.xml Error:
    uses-sdk:minSdkVersion 21 cannot be smaller than version 23 declared in library [com.google.firebase:firebase-auth:23.0.0] C:\Users\Aeon\.gradle\caches\8.9\transforms\931cd555add300765bb4befeb4a9824c\transformed\firebase-auth-23.0.0\AndroidManifest.xml as the library might be using APIs not available in 21
    Suggestion: use a compatible library with a minSdk of at most 21,
        or increase this project's minSdk version to at least 23,
        or use tools:overrideLibrary="com.google.firebase.auth" to force usage (may lead to runtime failures)

ide 2024.13.0.190, runtime 2024.13.0.238

Does not happen with only setup and analytics enabled

Android game options are as provided here:

Image

@stuckie stuckie moved this from Triage to Backlog in Team Workload Apr 10, 2025
@npapalia
Copy link
Author

More information: this also happens on this IDE and Runtime as well.

Image

@jzavala-YYG
Copy link
Contributor

Hello @npapalia

This issue does reference to Java version not to Min SDK Version.

I created an extension as "HOT FIX" for this issue, I need talk with the team if we move ahead with this in the extension or should be included in the internal files

<YYAndroidGradleAndroid>
    compileOptions {
        sourceCompatibility JavaVersion.VERSION_17
        targetCompatibility JavaVersion.VERSION_17
    }
</YYAndroidGradleAndroid>

Download the .zip file, unzip it and import it using Tools -> Import Local Package

FirebaseHotFix.zip

Please let me know if works for you

Regards

@npapalia
Copy link
Author

Hi,

Thanks so much for the quick hotfix. I'll pass this to my team and provide more information on how everything works out soon.

Thanks,
Nico

@Song-of-Aeon
Copy link

Hey, I'm on @npapalia's team, and I've tried to apply the hotfix. Nothing seemed to change in the compile process. I appreciate the effort taken to make it, but it doesn't seem to do anything. Should I be doing anything more than just importing it and ensuring its enabled?

@jzavala-YYG
Copy link
Contributor
jzavala-YYG commented Apr 11, 2025

Hey, I'm on @npapalia's team, and I've tried to apply the hotfix. Nothing seemed to change in the compile process. I appreciate the effort taken to make it, but it doesn't seem to do anything. Should I be doing anything more than just importing it and ensuring its enabled?

Sorry, I just tested again and you are right, no effect, please try again with this:
FirebaseHotFix.zip

Now the inserted code it's:

<YYAndroidGradleEnd>
android {
	    compileOptions {
        sourceCompatibility JavaVersion.VERSION_17
        targetCompatibility JavaVersion.VERSION_17
    }
}
</YYAndroidGradleEnd>

@npapalia
Copy link
Author

Thanks a lot!!! We'll try this out today.

@npapalia
Copy link
Author

Hey there,

Sorry to be a pain, but unfortunately we've had the same error returned after trying this one:

Image

Could it be that maybe our issue is different than we originally thought? We are on IDE 2024.11.0.179 and Runtime 2024.11.0.226. Let me know if there is any further information we can provide, and if you'd like access to the project to see directly.

Thanks a lot,
Nico

@jzavala-YYG
Copy link
Contributor

@npapalia I can't replicate, can you upload a minimal replicable project?

@npapalia
Copy link
Author
npapalia commented Apr 14, 2025

Hey there,

@jzavala-YYG Would you mind if I just add you to the project repository directly? That way you can have full visibility

*I've just sent you an invite to the repository, I think it might be useful for you to see the whole project

@jzavala-YYG
Copy link
Contributor

@npapalia I saw the invitation but at the moment of accept it, had no effect, I had no access to the repository, did you removed the invitation?
Can you send the invitation again please?

@npapalia
Copy link
Author

@jzavala-YYG

On my end it says you already have access - can you confirm you still don't have it, and if so I'll remove then re-add you?

Image

@jzavala-YYG
Copy link
Contributor

I succeed run your project on Android.
For some reason in the manifest this line was commented:
<uses-sdk android:minSdkVersion="${YYAndroidMinSDKVersion}" android:targetSdkVersion="${YYAndroidTargetSDKVersion}"/>

I created a hot fix that I hope work for you:

FirebaseHotFix.zip

And set your minimun SDK to 23

Image

Let me know if if now the build success.

@jzavala-YYG
Copy link
Contributor

@npapalia
I just did another test with your project, discarding all my changes and seems that just change to 21->23 make it work...
It's a weird environment, let me know if get fixed in your side.

@npapalia
Copy link
Author

Hi @jzavala-YYG ,

Thanks for the work, I appreciate it - My developer is wrapping up another task, then we'll try this out and hopefully get it going! I will reply back and let you know.

Thanks much and talk soon

@YYDan YYDan added Firebase This issue affects the specific named extension and removed extension-bug labels Jun 2, 2025
@YYDan YYDan added the extension This issue is to do with any of the official extensions label Jun 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
extension This issue is to do with any of the official extensions Firebase This issue affects the specific named extension
Projects
Status: Backlog
Development

No branches or pull requests

5 participants
0