XML Parse error running AndroidSetup.bat

I have a brand new computer. I’m trying to set it up so that I can do quest development. However, I cannot get past an error where I run the SetupAndroid.bat file.

I’m following the instructions on this page

I have installed Unreal Engine 5.3.2 from the Epic Games Store. I included “Android” as a target platform.

I downloaded and installed Android Studio Flamingo Path 2.

When I follow the steps in he section Run the SetupAndroid Script

I do not see

1. The script prompts you to accept the Android SDK license agreement. Type Y and press Enter to accept.

I just see this output in my command window


Android Studio Path: C:\Program Files\Android\Android Studio
Android Studio SDK Path: C:\Users\dalan\AppData\Local\Android\Sdk
Using sdkmanager: C:\Users\dalan\AppData\Local\Android\Sdk\cmdline-tools\latest\bin\sdkmanager.bat
Warning: Errors during XML parse:
Warning: Additionally, the fallback loader failed to parse the XML.
[=======================================] 100% Computing updates...

Success

SUCCESS: Specified value was saved.

SUCCESS: Specified value was saved.
Press any key to continue . . .

I have not changed the default location for anything. I have tried uninstalling and reinstalling Android Studio and all related components many times with no change.

I’m not sure if this helps but there are my environment variables.

In an attempt to get more information, such as which XML file is having issues, I added the --verbose flag when the SDKManager is being invoked. I get some more info but not enough for me to figure out the issue.


Android Studio Path: C:\Program Files\Android\Android Studio
Android Studio SDK Path: C:\Users\dalan\AppData\Local\Android\Sdk
Using sdkmanager: C:\Users\dalan\AppData\Local\Android\Sdk\cmdline-tools\latest\bin\sdkmanager.bat
Info: Parsing C:\Users\dalan\AppData\Local\Android\Sdk\build-tools\33.0.1\package.xml
Info: Parsing C:\Users\dalan\AppData\Local\Android\Sdk\build-tools\34.0.0\package.xml
Info: Parsing C:\Users\dalan\AppData\Local\Android\Sdk\cmake\3.10.2.4988404\package.xml
Info: Parsing C:\Users\dalan\AppData\Local\Android\Sdk\cmdline-tools\1.0\package.xml
Info: Parsing C:\Users\dalan\AppData\Local\Android\Sdk\cmdline-tools\10.0\package.xml
Info: Parsing C:\Users\dalan\AppData\Local\Android\Sdk\cmdline-tools\11.0\package.xml
Info: Parsing C:\Users\dalan\AppData\Local\Android\Sdk\cmdline-tools\12.0\package.xml
Info: Parsing C:\Users\dalan\AppData\Local\Android\Sdk\cmdline-tools\13.0\package.xml
Info: Parsing C:\Users\dalan\AppData\Local\Android\Sdk\cmdline-tools\2.1\package.xml
Info: Parsing C:\Users\dalan\AppData\Local\Android\Sdk\cmdline-tools\3.0\package.xml
Info: Parsing C:\Users\dalan\AppData\Local\Android\Sdk\cmdline-tools\4.0\package.xml
Info: Parsing C:\Users\dalan\AppData\Local\Android\Sdk\cmdline-tools\5.0\package.xml
Info: Parsing C:\Users\dalan\AppData\Local\Android\Sdk\cmdline-tools\6.0\package.xml
Info: Parsing C:\Users\dalan\AppData\Local\Android\Sdk\cmdline-tools\7.0\package.xml
Info: Parsing C:\Users\dalan\AppData\Local\Android\Sdk\cmdline-tools\8.0\package.xml
Info: Parsing C:\Users\dalan\AppData\Local\Android\Sdk\cmdline-tools\9.0\package.xml
Info: Parsing C:\Users\dalan\AppData\Local\Android\Sdk\cmdline-tools\latest\package.xml
Info: Parsing C:\Users\dalan\AppData\Local\Android\Sdk\emulator\package.xml
Info: Parsing C:\Users\dalan\AppData\Local\Android\Sdk\ndk\25.1.8937393\package.xml
Info: Parsing C:\Users\dalan\AppData\Local\Android\Sdk\platform-tools\package.xml
Info: Parsing C:\Users\dalan\AppData\Local\Android\Sdk\platforms\android-33\package.xml
Info: Parsing C:\Users\dalan\AppData\Local\Android\Sdk\platforms\android-34\package.xml
Info: Parsing C:\Users\dalan\AppData\Local\Android\Sdk\sources\android-34\package.xml
Warning: Errors during XML parse:
Warning: Additionally, the fallback loader failed to parse the XML.
[=======================================] 100% Computing updates...

Success

SUCCESS: Specified value was saved.

SUCCESS: Specified value was saved.
Press any key to continue . . .

Any help is appreciated.
Thank You

3 Likes

Same issue here. Can’t find a solution online, Need Help!

2 Likes

same issue…

Hi, I have the same issue, I reinstalled Android studio falmingo several times without any luck, any fix is appreciated.

Warning: Errors during XML parse:
Warning: Additionally, the fallback loader failed to parse the XML.

1 Like

Same issue here, I need solution too…

Same issue here! I had UE5.3 with Android stuff installed and everything was working fine, was able to cook, package, deploy & run on Android (along with Windows and a separate Mac build).

Installed 5.4 and my project no longer recognizes Android. Reran the SetupAndroid.bat got the error shown above and my 5.4 project still doesn’t work on Android. It doesn’t show up as valid SDK under platforms.

Is anyone here experiencing this error for 5.3 or only for 5.4?

Same error exactly. I’m following the antinnit tutorial for 5.3.2

I experienced this error in 5.3

Hi, I have the same issue, I reinstalled Android studio falmingo several times without any luck, any fix is appreciated.

Warning: Errors during XML parse:
Warning: Additionally, the fallback loader failed to parse the XML.

I experienced this error in 5.3

Fwiw I get this error in 5.3 and 5.4. the Android SDK does work for me in 5.3 but not 5.4. not sure why yet.

Point being if this is the only warning you see, and Android studio was properly installed, you might have Android option available under cook/package esp in 5.3

Hi @indigoarthur when you had it working on 5.3 were you following the tutorial by antinnit? I’m at a loss to identify what part of that is the problem… also getting error “The Binaries for this Target Platform are not currently installed, would you like to use the Launcher to download them?”. Any tip would be appreciated, thanks!

In my case, I had a package error, but not the XML Parse error was the issue. The log said soen syntax error which turned out to be the issue with my drive letter… So the issue is maybe not with the XML Parse error, maybe it is an other thing. Check deeply the output log, there will be the actuall issue.

Hey friend! I used this doc:
|How To Set Up Android Sdk And Ndk For Your Unreal Engine Development Environment | Unreal Engine 5.3 Documentation | Epic Developer Community

As I understand your question the binaries would be the “Android SDK API 34” type stuff which you download thru the SDK Manager in Android Studio.

For UE5.3, after following the doc steps for AS and running SetupAndroid.bat from UE5.3, the Android platform became active in the Unreal Editor. I haven’t had the same success on 5.4

But another issue is 5.4 has banned the current MSVC version and demands another one. So for me 5.3 and 5.4 are acting mutually exclusive. This stuff is so brittle I’m starting to doubt its value… :frowning:

Same problem here (Quest Development).
Everything is running great in VR Preview and the Meta XR Simulator but I can’t package nor send it over to the real hardware. What’s driving me really nuts is that the xml parser error doesn’t give the slightest hint which xml causes the problems AND the 2nd issue “The Binaries for this Target Platform are not currently installed, would you like to use the Launcher to download them?” also doesn’t show anything in the output log to determine what is missing.
Anyway, the OP wrote this 18 days ago, is there still no solution? Do I need to switch to Unity (which seems to have better integration)?

I finally got it to work! The major problem was, you need to add android as a target platform in the engine selection and let the engine install other necessary components:

I haven’t seen this mentioned anywhere! This gets rid of the “The binaries are not installed…etc.” error. For the android sdk, when I started over I removed any env variables I had from previous installs, selected only the very barebones in Android Studio (platform sdk and cmdline tools) and ran the AndroidSetup.bat. The complain about the xml parse was still in the output but it set all the env stuff and downloaded the correct cmake version. After that, I installed the rest of the necessary Android stuff for Quest dev and I can finally debug and launch on the hardware. Hope this helps somebody.

1 Like

I too am still experiencing the problem. Managed to setup everything required for android development a few months back but then I took a break from working on my project. Now I’m back and at square one; with the only solution suggested here already implemented.

Same error. But I still can package the game.
At the end gives me this error.

UATHelper: Packaging (Android (ASTC)): Couldn’t find 32-bit or 64-bit versions of the Android toolchain with NDKROOT: C:/Users/cgl/AppData/Local/Android/Sdk/ndk

Then Unknown error.

Ok solved it by changing the file source of the ndk to C:\Users\YOURNAME\AppData\Local\Android\Sdk\ndk\26.3.11579264
doesnt work with any other ndk version. There’s still the parse error but it exports the game.

1 Like