Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

解决AndroidManifest.xml里注释有中文 或 “-->”前没有空格时 出错的bug #40

Merged
merged 1 commit into from
May 19, 2014

Conversation

damonliuchn
Copy link
Contributor

本commit解决的问题描述:(本人已十分确定自己的AndroidManifest.xml是UTF-8 并且gradle设置了options.encoding = "UTF-8")
1、 此时 会报错org.xml.sax.SAXParseException: The string "--" is not permitted within comments. 解决方法也可以
2、注释中有中文时,copy 到的AndroidManifest.xml里面中文会变成乱码,gradle构建就会出错: error: Error parsing XML: not well-formed (invalid token)。

我的解决方法很简单,就是把临时的AndroidManifest.xml中的注释用正则删掉即可。亲测可行,望作者采纳,谢谢。

本commit解决的问题描述:(本人已十分确定自己的AndroidManifest.xml是UTF-8 并且gradle设置了options.encoding = "UTF-8")
1、<!--注释先后没有加空格--> 此时 会报错org.xml.sax.SAXParseException: The string "--" is not permitted within comments.   解决方法也可以<!-- 注释先后都加空格 -->
2、注释中有中文时,copy 到的AndroidManifest.xml里面中文会变成乱码,gradle构建就会出错: error: Error parsing XML: not well-formed (invalid token)。

我的解决方法很简单,就是把临时的AndroidManifest.xml中的注释用正则删掉即可。亲测可行,望作者采纳,谢谢。
ntop001 added a commit that referenced this pull request May 19, 2014
解决AndroidManifest.xml里注释有中文 或 “-->”前没有空格时 出错的bug
@ntop001 ntop001 merged commit 6fd5b6f into umeng:master May 19, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants