我正在尝试在 Studio 中将 6.3 项目升级到 7.1,升级不断崩溃并关闭项目。
如果我从我的应用程序中删除 windows8 项目文件,则升级成功。我附上了我的 appx.manifest 文件,以防这有助于调试问题。
10:49:13 AM:[2016-02-09 10:46:18] 将 WLWin8Native 引用和 AuthWinRT.targets 添加到 Windows 8 项目文件 [2016-02-09 10:46:21] FWLST1226I:添加了授权管理器 Cordova config.xml 的插件(C:\Users\IBM_ADMIN\MobileFirst71Prototype\MaximoAnywhere\apps\WorkExecution\iphone\native\config.xml)。
[2016-02-09 10:46:21] 升级期间出现意外错误:com.worklight.upgrader.upgraders.windows8.AppXManifestUpgrade.upgrade(AppXManifestUpgrade.java:69) 处com.worklight.upgrader 处的 java.lang.NullPointerException。 WLUpgradeEngine.executeUpgrader(WLUpgradeEngine.java:368) 在 com.worklight.upgrader.WLUpgradeEngine.performUpgrade(WLUpgradeEngine.java:301) 在 com.worklight.upgrader.WLUpgradeEngine.upgradeProject(WLUpgradeEngine.java:188) 在 com.worklight.studio .plugin.upgrader.WLUpgraderWorkspaceJob.runInWorkspace(Unknown Source) at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:38) at org.eclipse.core.internal.jobs.Worker.run(Worker.爪哇:53)
[2016-02-09 10:46:21] java.lang.NullPointerException
这是我的 package.appxmanifest 文件
<?xml version="1.0" encoding="UTF-8"?>
<Package xmlns="http://schemas.microsoft.com/appx/2010/manifest" xmlns:m2="http://schemas.microsoft.com/appx/2013/manifest">
<Identity Name="a02b50fe-bb55-4be5-8bd9-6c2f93cef175" Version="7.5.2.1" Publisher="CN=application's author"/>
<Properties>
<DisplayName>Work Execution</DisplayName>
<PublisherDisplayName>IBM</PublisherDisplayName>
<Logo>images\storelogo.png</Logo>
</Properties>
<Prerequisites>
<OSMinVersion>6.3.0</OSMinVersion>
<OSMaxVersionTested>6.3.0</OSMaxVersionTested>
</Prerequisites>
<Resources>
<Resource Language="x-generate"/>
</Resources>
<Applications>
<Application Id="App" StartPage="www\default\index.html">
<m2:VisualElements DisplayName="Work Execution" Description="Work Execution" BackgroundColor="#003f69" ForegroundText="light"
Square150x150Logo="images\logo.png" Square30x30Logo="images\smalllogo.png">
<m2:SplashScreen Image="images\splashscreen.png"/>
</m2:VisualElements>
</Application>
</Applications>
<Capabilities>
<Capability Name="privateNetworkClientServer"/>
<Capability Name="internetClient"/>
<Capability Name="picturesLibrary"/>
<DeviceCapability Name="webcam"/>
<DeviceCapability Name="location"/>
</Capabilities>
</Package>