Windows 8 appx上的MobileFirst项目升级失败

时间:2016-02-09 17:33:15

标签: ibm-mobilefirst mobilefirst-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:为config.xml添加了授权管理器Cordova插件(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中的 java.lang.NullPointerException(AppXManifestUpgrade.java:69) at com.worklight.upgrader.WLUpgradeEngine.executeUpgrader(WLUpgradeEngine.java:368)at com.worklight.upgrader.WLUpgradeEngine.performUpgrade(WLUpgradeEngine.java:301) at com.worklight.upgrader.WLUpgradeEngine.upgradeProject(WLUpgradeEngine.java:188)at com.worklight.studio.plugin.upgrader.WLUpgraderWorkspaceJob.runInWorkspace(Unknown 来自org.eclipse.core.resources.internalWorkspaceJob.run(InternalWorkspaceJob.java:38)的org.eclipse.core.internal.jobs.Worker.run(Worker.java: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>

1 个答案:

答案 0 :(得分:0)

不知怎的,我的VisualElements元素中有一些无效的XML。一旦我将清单的VisualElements部分修改为这样,升级就会完成。

 <VisualElements BackgroundColor="#003f69" Description="Inspection" DisplayName="Inspection" ForegroundText="light" Logo="images\logo.png" SmallLogo="images\smalllogo.png" ToastCapable="true">
        <SplashScreen Image="images\splashscreen.png"/>
      </VisualElements>