Windows build error (phonegap-version=cli-6.1.0)

  • 1
  • Problem
  • Updated 4 years ago
Error log:

Building project: C:\cygwin\tmp\gimlet\1800758\project\CordovaApp.Windows10.jsproj
Configuration : debug
Platform : arm
C:\cygwin\tmp\gimlet\1800758\project\build\windows\debug\arm\win10\AppxManifest.xml : error APPX0501: Validation error. error C00CE014: App manifest validation error: The app manifest must be valid as per schema: Line 35, Column 6, Reason: Element '{http://schemas.microsoft.com/appx/man...' is unexpected according to content model of parent element '{http://schemas.microsoft.com/appx/man...'. Expecting: {http://schemas.microsoft.com/appx/man.... [C:\cygwin\tmp\gimlet\1800758\project\CordovaApp.Windows10.jsproj]
Photo of underberger .

underberger .

  • 4 Posts
  • 0 Reply Likes

Posted 4 years ago

  • 1
Photo of JesseMonroy650 (Volunteer)

JesseMonroy650 (Volunteer), Champion

  • 3325 Posts
  • 122 Reply Likes
@underberger

Since this is your first post, please answer the following question:
- is this your first hybrid app?
- are you using Desktop App?
- are you using CLI, Build, or SDK? Please do not assume the answer, please read the link.

Thanks
Jesse
Photo of underberger .

underberger .

  • 4 Posts
  • 0 Reply Likes
Hi, thanks for the reply.
It's my first hybrid app.
I'm using Build since a while for Android and iOS.
After I have added the Windows platform to the config this error occurs.
windows-appx-target = uap
windows-arch = arm
Photo of JesseMonroy650 (Volunteer)

JesseMonroy650 (Volunteer), Champion

  • 3325 Posts
  • 122 Reply Likes
@underberger, When posting code please use (some HTML allowed) (like <code></code> See below for answers.
Photo of underberger .

underberger .

  • 4 Posts
  • 0 Reply Likes
And I'm not using the desktop app.
Photo of JesseMonroy650 (Volunteer)

JesseMonroy650 (Volunteer), Champion

  • 3325 Posts
  • 122 Reply Likes
@underberger,
the partial error listing indicate you have improper syntax. Did you spell the XML entry correctly? Did you include the quotes (")?
Jesse
Photo of underberger .

underberger .

  • 4 Posts
  • 0 Reply Likes
The config.xml seems fine to me.


<?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.xdev.mobile.container"
version="1.0.0">

<preference name="phonegap-version" value="cli-6.1.0" />

<name>app</name>

<icon src="icon.png" gap:role="default" />

<content src="index.html" />

<platform name="android">
<allow-intent href="market:*" />
</platform>
<platform name="ios">
<allow-intent href="itms:*" />
<allow-intent href="itms-apps:*" />
</platform>
<platform name="windows" />

<preference name="fullscreen" value="false" />
<preference name="auto-hide-splash-screen" value="true" />
<preference name="disable-cursor" value="false" />
<preference name="show-splash-screen-spinner" value="true" />
<preference name="webviewbounce" value="true" />
<preference name="stay-in-webview" value="true" />

<preference name="android-minSdkVersion" value="14" />
<preference name="android-installLocation" value="auto" />
<preference name="AndroidPersistentFileLocation" value="Compatibility" />

<preference name="target-device" value="universal" />
<preference name="prerendered-icon" value="true" />
<preference name="detect-data-types" value="true" />
<preference name="exit-on-suspend" value="false" />
<preference name="ios-statusbarstyle" value="black-opaque" />

<preference name="windows-appx-target" value="uap" />
<preference name="windows-arch" value="arm" />

<plugin name="cordova-plugin-whitelist" version="1.2.2" src="npm" />

<access origin="*" />

<allow-navigation href="http://*/*" />
<allow-navigation href="https://*/*" />
<allow-navigation href="tel:*" />
<allow-navigation href="sms:*" />
<allow-navigation href="mailto:*" />
<allow-navigation href="geo:*" />

<allow-intent href="http://*/*" />
<allow-intent href="https://*/*" />
<allow-intent href="tel:*" />
<allow-intent href="sms:*" />
<allow-intent href="mailto:*" />
<allow-intent href="geo:*" />

<plugin name="cordova-plugin-network-information" spec="1.2.1" src="npm" />
<plugin name="cordova-plugin-exitapp" spec="1.0.0" src="npm" />
<plugin name="cordova-plugin-camera" spec="2.2.0" src="npm" />
<plugin name="cordova-plugin-media-capture" spec="1.3.0" src="npm" />
<plugin name="cordova-plugin-contacts" spec="2.1.0" src="npm" />
<plugin name="cordova-plugin-file" spec="4.2.0" src="npm" />
<plugin name="cordova-plugin-geolocation" spec="2.2.0" src="npm" />
<plugin name="cordova-plugin-vibration" spec="2.1.1" src="npm" />
<plugin name="phonegap-nfc" spec="0.6.6" src="npm" />
<plugin name="phonegap-plugin-barcodescanner" spec="5.0.0" src="npm" />

</widget>


The error message says that there's an error int the AppxManifest.xml, which is generated by Phonegap/Build, I presume.

The full log file:

Build Date: 2016-05-17 08:44:25 +0000
--------------------------------------------------------------------------------
PLUGIN OUTPUT
--------------------------------------------------------------------------------
Fetching plugin "cordova-plugin-whitelist@1.2.2" via npm
Installing "cordova-plugin-whitelist" at "1.2.2" for windows
Fetching plugin "cordova-plugin-network-information@1.2.1" via npm
Installing "cordova-plugin-network-information" at "1.2.1" for windows
Fetching plugin "cordova-plugin-exitapp@1.0.0" via npm
Installing "cordova.custom.plugins.exitapp" at "1.0.0" for windows
Fetching plugin "cordova-plugin-camera@2.2.0" via npm
Installing "cordova-plugin-camera" at "2.2.0" for windows
Fetching plugin "cordova-plugin-compat" via npm
Installing "cordova-plugin-compat" at "1.0.0" for windows
Fetching plugin "cordova-plugin-media-capture@1.3.0" via npm
Installing "cordova-plugin-media-capture" at "1.3.0" for windows
Fetching plugin "cordova-plugin-file" via npm
Installing "cordova-plugin-file" at "4.2.0" for windows
Dependent plugin "cordova-plugin-compat" already installed on windows.

The Android Persistent storage location now defaults to "Internal". Please check this plugins README to see if you application needs any changes in its config.xml.

If this is a new application no changes are required.

If this is an update to an existing application that did not specify an "AndroidPersistentFileLocation" you may need to add:

""

to config.xml in order for the application to find previously stored files.

Dependent plugin "cordova-plugin-compat" already installed on windows.
Fetching plugin "cordova-plugin-contacts@2.1.0" via npm
Installing "cordova-plugin-contacts" at "2.1.0" for windows
Dependent plugin "cordova-plugin-compat" already installed on windows.
Fetching plugin "cordova-plugin-file@4.2.0" via npm
Plugin "cordova-plugin-file" already installed on windows. Making it top-level.
Fetching plugin "cordova-plugin-geolocation@2.2.0" via npm
Installing "cordova-plugin-geolocation" at "2.2.0" for windows
Dependent plugin "cordova-plugin-compat" already installed on windows.
Fetching plugin "cordova-plugin-vibration@2.1.1" via npm
Installing "cordova-plugin-vibration" at "2.1.1" for windows
Fetching plugin "phonegap-nfc@0.6.6" via npm
Installing "phonegap-nfc" at "0.6.6" for windows
Fetching plugin "phonegap-plugin-barcodescanner@5.0.0" via npm
Installing "phonegap-plugin-barcodescanner" at "5.0.0" for windows
Building project: C:\cygwin\tmp\gimlet\1800758\project\CordovaApp.Windows10.jsproj
Configuration : debug
Platform : arm
C:\cygwin\tmp\gimlet\1800758\project\build\windows\debug\arm\win10\AppxManifest.xml : error APPX0501: Validation error. error C00CE014: App manifest validation error: The app manifest must be valid as per schema: Line 35, Column 6, Reason: Element '{http://schemas.microsoft.com/appx/manifest/uap/windows10}Capability' is unexpected according to content model of parent element '{http://schemas.microsoft.com/appx/manifest/foundation/windows10}Capabilities'. Expecting: {http://schemas.microsoft.com/appx/manifest/foundation/windows10}DeviceCapability. [C:\cygwin\tmp\gimlet\1800758\project\CordovaApp.Windows10.jsproj]
Photo of JesseMonroy650 (Volunteer)

JesseMonroy650 (Volunteer), Champion

  • 3325 Posts
  • 122 Reply Likes
@underberger,
Your config.xml looks correct. You might want to try "anycpu" and see if that makes a difference - but I don't think it will (continue reading).

I looked deeper into this. It appears a month or so ago a fix was made to the windows compiler - which might be exactly your issue. You can read about it in the Cordova Blog here : http://cordova.apache.org/announcements/2016/04/05/cordova-windows-4.3.2.html.

If this is the issue, then we have to get the PGB team to update the compiler. Right now the the latest PGB version for windows is 4.3.1.

In addition, I read the latest PGB blog for the windows compiler, dated April 25, 2016. If you go to the bottom of the comments you will see the same issue reported by Serge Charbit. So it appears this issue has been around a bit.

Also, the last line of the blog suggest posting to the other forum:
https://forums.adobe.com/community/phonegap/build

My suggestion is you find Serge Charbit, and you both post comments to the forum. In addition you should post to the bug repository for PGB: https://github.com/phonegap/build/issues

Any Questions?
Jesse