[英]Error:XML version “2.0” is not supported, only XML 1.0 is supported
I have tried updating my app to newer version to publish it to google play store, however when I change the version and generate the signed APK I get this error: Error:XML version "2.0" is not supported, only XML 1.0 is supported. 我已尝试将我的应用更新到较新版本以将其发布到Google Play商店,但是当我更改版本并生成签名的APK时,我收到此错误:错误:不支持XML版本“2.0”,仅支持XML 1.0。 I have absolutely no idea what could be causing it. 我完全不知道是什么导致它。 Can anyone point me in the right direction or at least tell me where I should find what's wrong?? 任何人都可以指出我正确的方向或至少告诉我在哪里我应该找到什么是错的?
Open your manifest file and change xml version from 2.0 to 1.0. 打开清单文件,将xml版本从2.0更改为1.0。 It should run properly now. 它应该现在正常运行。
<?xml version="2.0" encoding="utf-8"?>
to 至
<?xml version="1.0" encoding="utf-8"?>
I faced this problem before, so the solution is here. 我之前遇到过这个问题,所以解决方案就在这里。
Try to increase your versionCode and change your versionName in gradle file only. 尝试增加versionCode并仅在gradle文件中更改versionName。
Do not increase the version in manifest file. 不要增加清单文件中的版本。
versionCode 2 // an example (if the previous one was 1) versionCode 2 //一个例子(如果前一个是1)
versionName 1.1 // an example (if the previous one was 1.0) versionName 1.1 //示例(如果前一个是1.0)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.