Problem with Building Android Game

Hi, I’ve been trying to build my game and came up with an error.
I have tried multiple solutions found online and still have the same problem.
I’ve reinstalled SDK, reinstalled unity, reinstalled JDK, tried making a new game and building there, and still having that problem. Any help will be appreciated.

Error:

CommandInvokationFailure: Failed to re-package resources.
C:\Users\bhughes\AppData\Local\Android\Sdk\build-tools\25.0.2\aapt.exe package --auto-add-overlay -v -f -m -J “gen” -M “AndroidManifest.xml” -S “res” -I “C:\Users\bhughes\AppData\Local\Android\Sdk\platforms\android-25\android.jar” -F bin/resources.ap_

stderr[
res\values-v21\styles.xml:1: error: Error parsing XML: not well-formed (invalid token)

]
stdout[
Configurations:
(default)
v14
v21
mdpi-v4
xhdpi-v4

Files:
drawable\app_banner.png
Src: (xhdpi-v4) res\drawable-xhdpi\app_banner.png
drawable\app_icon.png
Src: (mdpi-v4) res\drawable-mdpi\app_icon.png
values\strings.xml
Src: () res\values\strings.xml
values\styles.xml
Src: () res\values\styles.xml
Src: (v14) res\values-v14\styles.xml
Src: (v21) res\values-v21\styles.xml
AndroidManifest.xml
Src: () AndroidManifest.xml

Resource Dirs:
Type drawable
drawable\app_banner.png
Src: (xhdpi-v4) res\drawable-xhdpi\app_banner.png
drawable\app_icon.png
Src: (mdpi-v4) res\drawable-mdpi\app_icon.png
Type values
values\strings.xml
Src: () res\values\strings.xml
values\styles.xml
Src: () res\values\styles.xml
Src: (v14) res\values-v14\styles.xml
Src: (v21) res\values-v21\styles.xml
Including resources from package: C:\Users\bhughes\AppData\Local\Android\Sdk\platforms\android-25\android.jar
applyFileOverlay for drawable
applyFileOverlay for layout
applyFileOverlay for anim
applyFileOverlay for animator
applyFileOverlay for interpolator
applyFileOverlay for transition
applyFileOverlay for xml
applyFileOverlay for raw
applyFileOverlay for color
applyFileOverlay for menu
applyFileOverlay for mipmap
Processing image: res\drawable-xhdpi\app_banner.png
Processing image: res\drawable-mdpi\app_icon.png
(processed image res\drawable-mdpi\app_icon.png: 90% size of source)
(processed image res\drawable-xhdpi\app_banner.png: 93% size of source)
(new resource id app_banner from xhdpi-v4\drawable\app_banner.png #generated)
(new resource id app_icon from mdpi-v4\drawable\app_icon.png #generated)
]
exit code: 1
UnityEditor.Android.Command.Run (System.Diagnostics.ProcessStartInfo psi, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg)
UnityEditor.Android.PostProcessor.Tasks.TasksCommon.Exec (System.String command, System.String args, System.String workingdir, System.String errorMsg, Int32 retriesOnFailure)
UnityEditor.HostView:OnGUI()

You have an XML file that is not well formed (contains invalid chars?)

res\values-v21\styles.xml:1: error: Error parsing XML: not well-formed (invalid token)
Try to find this file and post its contents, or correct it yourself.

*This file may be packaged inside an .aar library (which is just a zip file). You can find out the contents of this file after building, in a folder called Temp/StagingArea.

If you still can’t fix this issue yourself, feel free to contact me via the link in my signature.

Hi, thanks for the quick reply.

I managed to find res\values-v21\styles, but it’s actually blank.
res\values-v14\styles has something in it though.

<?xml version="1.0" encoding="utf-8"?>

[EDIT]
Actually, it isn’t blank after all. It appears to be a bunch of spaces. I can see it in Notepad if I highlight over it.

I think you shouldn’t have a blank file. if there’s nothing in it, try to remove it.