Eclipse IBM worklight错误:cvc复杂类型。2.4.a:发现以>;开头的内容无效;元素';用法';
我已经导入了一个现有的worklight项目,但构建它时出现以下错误。请指教 错误 cvc复杂类型.2.4.a:发现以开头的内容无效 元素“用法”。什么之中的一个 '{"http://www.worklight.com/application-descriptor“:shell, "http://www.worklight.com/application-descriptor“:mobileDeviceSSO, "http://www.worklight.com/application-descriptor“:登录高度, "http://www.worklight.com/application-descriptor“:loginpoopWidth, "http://www.worklight.com/application-descriptor“:iphone, "http://www.worklight.com/application-descriptor“:安卓, "http://www.worklight.com/application-descriptor“:黑莓, "http://www.worklight.com/application-descriptor“:ipad, "http://www.worklight.com/application-descriptor“:windowsPhone, "http://www.worklight.com/application-descriptor“:mobileWebApp, "http://www.worklight.com/application-descriptor“:vista, "http://www.worklight.com/application-descriptor“:仪表板, "http://www.worklight.com/application-descriptor“:空气, "http://www.worklight.com/application-descriptor“:我观察, "http://www.worklight.com/application-descriptor“:facebook, "http://www.worklight.com/application-descriptor“:嵌入式, "http://www.worklight.com/application-descriptor“:普通, "http://www.worklight.com/application-descriptor“:worklightServerRootURL, "http://www.worklight.com/application-descriptor“:worklightRootURL}” 是 预期。application-descriptor.xml/TWorklightProj/apps/TApp行 15 XML问题 XML文件Eclipse IBM worklight错误:cvc复杂类型。2.4.a:发现以>;开头的内容无效;元素';用法';,eclipse,ibm-mobilefirst,Eclipse,Ibm Mobilefirst,我已经导入了一个现有的worklight项目,但构建它时出现以下错误。请指教 错误 cvc复杂类型.2.4.a:发现以开头的内容无效 元素“用法”。什么之中的一个 '{"http://www.worklight.com/application-descriptor“:shell, "http://www.worklight.com/application-descriptor“:mobileDeviceSSO, "http://www.worklight.com/application-desc
<?xml version="1.0" encoding="UTF-8" standalone="no"?> <application xmlns="http://www.worklight.com/application-descriptor" id="TApp" platformVersion="5.0">
<displayName>TApp</displayName>
<description>TApp</description>
<author>
<name>application's author</name>
<email>application author's e-mail</email>
<homepage>http://mycompany.com</homepage>
<copyright>Copyright My Company</copyright>
</author>
<height>460</height>
<width>320</width>
<mainFile>index.html</mainFile>
<thumbnailImage>common/images/thumbnail.png</thumbnailImage>
<usage requireAuthentication="never"/>
<iphone bundleId="com.ATTApp" version="1.0">
<worklightSettings include="true"/>
<security>
<testAppAuthenticity enabled="false"/>
<encryptWebResources enabled="false"/>
<testWebResourcesChecksum enabled="false" ignoreFileExtensions="png, jpg, jpeg, gif, mp4, mp3"/>
</security>
</iphone>
<android version="1.0">
<worklightSettings include="true"/>
<security>
<testAppAuthenticity enabled="false"/>
<encryptWebResources enabled="false"/>
<testWebResourcesChecksum enabled="false" ignoreFileExtensions="png, jpg, jpeg, gif, mp4, mp3"/>
<publicSigningKey>Replace this text with the public key of the certificate with which you sign the APK. For details see the Worklight Developer's Reference Guide.</publicSigningKey>
</security>
</android>
<mobileWebApp version="1.0"/>
<worklightServerRootURL>http://${local.IPAddress}:8080</worklightServerRootURL> </application>
塔普
塔普
应用程序的作者
应用程序作者的电子邮件
http://mycompany.com
版权所有我的公司
460
320
index.html
通用/images/thumbnail.png
将此文本替换为用于签署APK的证书的公钥。有关详细信息,请参阅Worklight开发者参考指南。
http://${local.IPAddress}:8080
看起来您已经升级了Worklight版本,但仍然有旧的application-descriptor.xml文件。
您需要修改文件以符合最新的架构。最基本的解决办法是删除这一行。
您也可以在此处看到应用程序示例-