SetupAndroid.bat UE4.25 Error

Mathisxy
Sun, 10 May 2020 19:58:14 +0000
Mobile

Hello,

I tried to install Android Studio for UE4.25. I upgraded my previous project from 4.24, where I used CodeWorks.

Now I uninstalled CodeWorks, installed Android Studio and got a few errors when running the SetupAndroid.bat file:

1. No SDK found (or something similar) → fixed it by installing some stuff via “SDK Manager” in Android Studio (dont remember the exact component)

2. ERROR: JAVA_HOME is set to an invalid directory: C:\NVPACK\jdk1.8.0_77 → fixed by installing OpenJDK 14 and setting the Environment Variable right

3. Android Studio Path: “C:\Program Files\Android\Android Studio”
Android Studio SDK Path: C:\NVPACK\android-sdk-windows
Using sdkmanager: C:\NVPACK\android-sdk-windows\tools\bin\sdkmanager.bat
Exception in thread “main” java.lang.NoClassDefFoundError: javax/xml/bind/annotation/XmlSchema
at com.android.repository.api.SchemaModule$SchemaModuleVersion.(SchemaModule.java:156)
at com.android.repository.api.SchemaModule.(SchemaModule.java:75)
at com.android.sdklib.repository.AndroidSdkHandler.(AndroidSdkHandler.java:81)
at com.android.sdklib.tool.sdkmanager.SdkManagerCli.main(SdkManagerCli.java:73)
at com.android.sdklib.tool.sdkmanager.SdkManagerCli.main(SdkManagerCli.java:48)
Caused by: java.lang.ClassNotFoundException: javax.xml.bind.annotation.XmlSchema
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:602)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)
… 5 more
Update failed. Please check the Android Studio install.
Drücken Sie eine beliebige Taste . . .

And this is the Error I´m completely stuck and lost.
I would appreciate any help!

19 posts - 16 participants