我正在尝试使用ant xmltask在IntelliJ IDEA中预处理我的AndroidManifest.xml。我的build.xml看起来像
<?xml version="1.0" encoding="UTF-8"?>
<project name="codebase">
<taskdef name="xmltask" classname="com.oopsconsultancy.xmltask.ant.XmlTask" classpath="xmltask.jar"/>
<target name="main">
<xmltask source="./AndroidManifest.template.xml" dest="./AndroidManifest1.xml">
<uncomment path="/manifest/comment()[1]"/>
</xmltask>
</target>
</project>
AndroidManifest.template.xml看起来像
<?xml version="1.0" encoding="utf-8"?>
<manifest
xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example"
android:versionCode="1114222"
android:versionName="2.2.2"
android:installLocation="auto"
>
<!--<uses-permission android:name="com.android.vending.BILLING"/>-->
<!-- Some more code here -->
</manifest>
所以我希望它取消注释
<uses-permission android:name="com.android.vending.BILLING"/>
字符串,但是当我运行它时,我得到了Exception
org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 71; The prefix "android" for attribute "android:name" associated with an element type "uses-permission" is not bound.
AndroidManifest1.xml保持不变。我该怎么办?