Skip to content
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

Cannot specify Android API levels that AndroidSdkVersions does not include #105

Closed
robinnorth opened this issue May 10, 2023 · 4 comments
Closed

Comments

@robinnorth
Copy link
Collaborator

PlayerSettings.Android.targetSdkVersion and PlayerSettings.Android.minSdkVersion will accept int values for higher Android API levels than are defined in UnityEditor.AndroidSdkVersions, allowing the use of new Android SDKs (e.g. Unity 2022.2 defines values for up to Android 30 in AndroidSdkVersions, but Android 34 is the latest available at the time of writing), but because BuildAndroid relies on AndroidSdkVersions to get and set API levels, building for these newer API levels is not possible via SuperUnityBuild.

@Grave18
Copy link

Grave18 commented Sep 12, 2023

Hello, meet this problem too, mimnimum target api must be 22 and maximum 34 for Unity 2022.3. Please fix 😢

@enpiech
Copy link

enpiech commented Oct 4, 2023

Hello, I have this problem too

@robinnorth robinnorth added this to the v8.0.0 milestone Oct 18, 2023
@tre-dev
Copy link

tre-dev commented Nov 28, 2023

Can this please be fixed? I really appreciate the work you're doing and this project, but this is a breaking bug and I'm not able to just manually modify the enum. @robinnorth

@AldeRoberge
Copy link

AldeRoberge commented Mar 22, 2024

I have the exact same problem, if we want to be able to publish on the Google Play store, new apps must target SDK version 33, which isn't even an option in AndroidSdkVersions. Take it from Unity's words : "These values should not be used to determine the highest supported API level.".

image
image

Edit : This happens in Unity 2022 LTS (2022.3.19f1), I was able to find higher versions in the latest version of the engine

https://github.com/Unity-Technologies/UnityCsReference/blob/6a26bc151b158aa1bba01019d97d932710fd8d6e/Editor/Mono/PlayerSettingsAndroid.bindings.cs#L110C9-L110C32

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants