Skip to content

Commit 8ed407c

Browse files
committed
fix: Update GetBuildTools function to accommodate the requirements of Android Build Tool versioning when using Unity 2022.3.44f1 LTS.
1 parent a0dae5b commit 8ed407c

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

Assets/Plugins/Source/Editor/Platforms/Android/AndroidBuilder.cs

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -228,11 +228,16 @@ private static string GetBuildTools()
228228
var toolsRegex = new Regex(@"(\d+)\.(\d+)\.(\d+)");
229229
int maxMajor = 0, maxMinor = 0, maxPatch = 0;
230230
//find highest usable build tools version
231-
#if UNITY_2022_2_OR_NEWER
232-
const int highestVersion = 32;
231+
const int highestVersion =
232+
#if UNITY_2022_3_OR_NEWER
233+
34
234+
#elif UNITY_2022_2_OR_NEWER
235+
32
233236
#else
234-
const int highestVersion = 30;
237+
30
235238
#endif
239+
;
240+
236241
foreach (var dir in Directory.GetDirectories(Path.Combine(AndroidExternalToolsSettings.sdkRootPath,
237242
"build-tools")))
238243
{

0 commit comments

Comments
 (0)