Unable to list target platforms when building for Android on Mac
I have run into a very annoying issue. I am trying to export a unity project to Android Studio. If I use player settings like in the following picture it does not work:
You can see my build settings in the next picture:
Everything works fine if I select the "Stable" Scripting Runtime Version in the player settings. Unfortunately I need the "Experimental" version. Unity shows the following error messages in the console:
CommandInvokationFailure: Unable to list target platforms. Please make sure the android sdk path is correct.
UnityEditor.BuildPlayerWindow+BuildMethodException: 2 errors at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (UnityEditor.BuildPlayerOptions options) [0x0020e] in /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPlayerWindowBuildMethods.cs:181 at UnityEditor.BuildPlayerWindow.CallBuildMethods (System.Boolean askForBuildLocation, UnityEditor.BuildOptions defaultBuildOptions) [0x00065] in /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPlayerWindowBuildMethods.cs:88 UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
I do not understand what is happening here. The sdk path should be set correctly, because it works with the stable build version.
Does anyone have an idea how to fix that issue?