Getting Error with SetupAndroid.bat


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:

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
Caused by: java.lang.ClassNotFoundException: javax.xml.bind.annotation.XmlSchema
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(
at java.base/java.lang.ClassLoader.loadClass(
… 5 more
Update failed. Please check the Android Studio install.
Press any key to continue . . .

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

if anybody find solution plzz tell me

1 Like

Same here! why is there not an answer or fix for this??? how can we build apps???!!! :frowning:

Have you found a solution?

Have you checked the android sdk tab in project settings in Unreal engine?