Search Issue Tracker
Fixed in 2019.2.X
[Android] CommandInvokationFailure appears in console when inspecting the API levels in Player Settings if using Bundled SDK
To reproduce this issue:
- Install either Unity Editor 2019.3 or 2019.2 using the HUB
- install the Android Module and the Android SDK and NDK with the module
- start a new project
- set the platform to Android
- Open Player Settings
- Open the Other Settings section
- Inspect the Minimum API Level and Target API Level fields
You can change the API levels and no errors appear in the console.
The fields display "Getting API Levels..." and an error appears in the console:
CommandInvokationFailure: Failed to update Android SDK package list.
E:/Unity/Unity Versions/2019.2.0b1/Editor/Data/PlaybackEngines/AndroidPlayer\SDK\tools\bin\sdkmanager.bat --list
Exception in thread "main" java.lang.NoClassDefFoundError: javax/xml/bind/annotation/XmlSchema
Caused by: java.lang.ClassNotFoundException: javax.xml.bind.annotation.XmlSchema
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(Unknown Source)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(Unknown Source)
at java.base/java.lang.ClassLoader.loadClass(Unknown Source)
... 5 more
Reproducible in 2019.2.0a4, 2019.2.0b1, 2019.2.0b10 and 2019.3.0a10
Cannot reproduce in 2019.1.8f1
Jun 07, 2021 14:30
Jul 22, 2020 05:30
problem fixed here : https://youtu.be/nECvvVe7gS8
Jul 13, 2020 10:31
kedi ve köpek mamaları uygun fiyatlar kaliteli ürünler http://www.patilimama.com
Aug 27, 2019 10:52
The problem is backkkk
Aug 26, 2019 01:22
Hi, is the ticket already reopened?
Here I just upgraded to 2019.2.2f1, the problem remains.
Aug 24, 2019 18:04
Still an problem in 2019.2.2f1. Updated two projects to 2019.2.2f1 today, and the projects settings dosn't work and I still get the error in the console.
Was able to see the projects settings after manually setting the android versions after opening the ProjectSettings file in a texteditor.
The android versions dropdowns will still not show up in projects settings, but I can atleast adjust all other settings.
Aug 22, 2019 16:39
Still present in Unity 2019.2.2 !!! So dear unity reopen the issue...
Aug 22, 2019 12:05
I am running Mac with Java 8 update 221 on 2019.2.2f1 and am having this issue.
Aug 20, 2019 12:25
I have a Mac trying to build Oculus Android content and this happens from 2019.2 and above. I have down graded to 2019.14f until this is fixed completely with no workarounds
Aug 16, 2019 13:06
Upgrade Unity from 2018.3 to 2019.2 and problem appears
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
- Input Field ignores first keyboard input when calling Focus() from code
- GC Alloc when using Graphics.RenderMeshInstanced
- [VFX Graph][URP] VFX crashes on URP when dragging VFX asset to the Hierarchy window
- InvalidOperationException when using AsyncGPUReadback.RequestIntoNativeArray
- Generated Entities look different when Depth Priming Mode is changed
Resolution Note (fix version 2019.2):
The Android command line tools do not support Java versions higher than 8 at this time. Having Java 9 or 10 installed may cause this error to occur. The recommended course of action is to uninstall Java 9 or 10 and to only have Java 8 installed on your machine.