superunitybuild / buildtool

A powerful automation tool for quickly and easily generating builds with Unity.
MIT License
1.19k stars 121 forks source link

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

Closed robinnorth closed 4 months ago

robinnorth commented 1 year ago

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 commented 1 year ago

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

enpiech commented 1 year ago

Hello, I have this problem too

tre-dev commented 10 months ago

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 commented 6 months ago

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