我使用jquery mobile开发了一个应用程序,并使用phonegap build编译它。但是当我尝试将它安装到Windows 7模拟器时,我得到了一个错误,如
错误 - 安装应用程序失败。发生了运行时错误。修复WMAppmanifest.xml文件中的功能。
这是我的WMAppManifest.xml
<?xml version="1.0" encoding="utf-8"?>
<Deployment xmlns="http://schemas.microsoft.com/windowsphone/2009/deployment" AppPlatformVersion="7.1">
<App xmlns="" ProductID="{80a42ce2-0c9f-39d1-a273-bb2e5bdbe855}" Title="PG Build App"
RuntimeType="Silverlight" Version="0.0.1.0" Genre="apps.normal"
Author="xxxxxx@gmail.com"
Description=""
Publisher="xxxxxx@gmail.com">
<IconPath IsRelative="true" IsResource="false">ApplicationIcon.png</IconPath>
<Capabilities>
<Capability Name="ID_CAP_CONTACTS" />
<Capability Name="ID_CAP_IDENTITY_DEVICE" />
<Capability Name="ID_CAP_ISV_CAMERA" />
<Capability Name="ID_CAP_LOCATION" />
<Capability Name="ID_CAP_MICROPHONE" />
<Capability Name="ID_CAP_NETWORKING" />
<Capability Name="ID_HW_FRONTCAMERA" />
<Capability Name="ID_CAP_WEBBROWSERCOMPONENT" />
</Capabilities>
<Tasks>
<DefaultTask Name="_default" NavigationPage="MainPage.xaml" />
</Tasks>
<Tokens>
<PrimaryToken TokenID="Cordova_1._5._0_Starter1Token" TaskName="_default">
<TemplateType5>
<BackgroundImageURI IsRelative="true" IsResource="false">Background.png</BackgroundImageURI>
<Count>0</Count>
<Title>Cordova_1._5._0_Starter1</Title>
</TemplateType5>
</PrimaryToken>
</Tokens>
</App>
</Deployment>
<!-- WPSDK Version 7.1.7720.0 -->
我需要在这里添加哪些功能?
答案 0 :(得分:0)
检查Windows Phone功能检测工具:http://msdn.microsoft.com/en-us/library/gg180730(v=VS.92).aspx
您可以运行它来确定DLL或Xap文件的功能。
编辑:
以下是创建项目时的默认功能:
<Capabilities>
<Capability Name="ID_CAP_GAMERSERVICES"/>
<Capability Name="ID_CAP_IDENTITY_DEVICE"/>
<Capability Name="ID_CAP_IDENTITY_USER"/>
<Capability Name="ID_CAP_LOCATION"/>
<Capability Name="ID_CAP_MEDIALIB"/>
<Capability Name="ID_CAP_MICROPHONE"/>
<Capability Name="ID_CAP_NETWORKING"/>
<Capability Name="ID_CAP_PHONEDIALER"/>
<Capability Name="ID_CAP_PUSH_NOTIFICATION"/>
<Capability Name="ID_CAP_SENSORS"/>
<Capability Name="ID_CAP_WEBBROWSERCOMPONENT"/>
<Capability Name="ID_CAP_ISV_CAMERA"/>
<Capability Name="ID_CAP_CONTACTS"/>
<Capability Name="ID_CAP_APPOINTMENTS"/>
</Capabilities>