Xamarin release build error: obj\Release\android\AndroidManifest.xml(0,0): Error: Error parsing XML: unknown encoding


ERROR:

\Release\android\AndroidManifest.xml(0,0): Error: Error parsing XML: unknown encoding ( )

CAUSE:
Android Application  Version Name  is not in right format (encoding="utf-8") , so it is using a default with  <?xml version="1.0" encoding="Windows-1252"?>

FIX:
In the project options set
android application - versionName to 3 digit version like "1.0.0",  not "1" or  "1.0"
 Ex:
android:versionName="1.0.0"

After this change the code will compile and you can see this following line in the
obj\Release\android\AndroidManifest.xml(0,0)

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

Comments