Download

Getting Error with SetupAndroid.bat

Hello!

I am trying to get Unreal Engine - any version 4.25+ to work with Android Studio, however I keep getting the following error when trying to use the setupAndroid.bat file. Using Android Studio 2020.3.1 for Windows 64-bit.

Here is my Log from the Batch file:

/start/
Android Studio Path: C:\Program Files\Android\Android Studio
Android Studio SDK Path: C:\Users\Patrick\AppData\Local\Android\Sdk
Using sdkmanager: C:\Users\Patrick\AppData\Local\Android\Sdk\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:581)
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.
Press any key to continue . . .
/end/

Any ideas on what to do or how to fix it? Cheers

if anybody find solution plzz tell me