如何在Phonegap版本中安装Shield TV支持?
当我将它添加到我的config.xml
时<uses-feature android:name="android.hardware.touchscreen" android:required="false" />
我收到此错误消息
Error - Malformed config.xml - You can fix this here
任何想法我做错了什么?
<?xml version="1.0" encoding="UTF-8" ?>
<widget xmlns = "http://www.w3.org/ns/widgets"
xmlns:gap = "http://phonegap.com/ns/1.0"
id = "com.xxxx.app"
versionCode = "1.0.9"
version = "1.0.9" >
<!-- versionCode is Android only -->
<!-- version is in major.minor.patch format -->
<name>XXX</name>
<description>
XXX
</description>
<author href="xxxxx" email="contact@xxx.com">
XXX
</author>
<icon src="icon.png" />
<preference name="fullscreen" value="true" />
<preference name="StatusBarOverlaysWebView" value="true" />
<access origin="*" />
<uses-feature android:name="android.hardware.touchscreen" android:required="false" />
<!-- Intenet zugriff plugin -->
<plugin name="cordova-plugin-whitelist" source="npm"/>
<plugin name="cordova-plugin-statusbar" source="npm"/>
<!--- <plugin name="cordova-plugin-fullscreen" source="npm" /> -->
<plugin name="cordova-plugin-vibration" source="npm" />
<plugin name="cordova-plugin-x-socialsharing" source="npm" />
<plugin name="phonegap-admob" source="npm"/>
</widget>
答案 0 :(得分:1)
好吧,请尝试检查documentation如何正确构建PhoneGap。
您可以在此处查看config.xml的基本属性和示例
我在此Failed Builds中也发现,如果您遇到错误的格式错误的config.xml,您可以使用W3C validator检查您的config.xml是否是有效的XML。