buildtool icon indicating copy to clipboard operation
buildtool copied to clipboard

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

Open robinnorth opened this issue 2 years ago • 3 comments

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.

robinnorth avatar May 10 '23 14:05 robinnorth

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

Grave18 avatar Sep 12 '23 18:09 Grave18

Hello, I have this problem too

enpiech avatar Oct 04 '23 05:10 enpiech

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

tre-dev avatar Nov 28 '23 15:11 tre-dev

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

AldeRoberge avatar Mar 22 '24 13:03 AldeRoberge