cordova - can not build app

Thread is closed for posting
4 posts, 0 answers
  1. Gediminas
    Gediminas avatar
    1 posts
    Member since:
    May 2014

    Posted 27 May 2014 Link to this post

    Hello everyone,
    I have just started learning to develop with Cordova. Unfortunately I have faced the problem with building wp7 app. Sorry if I repost thread, but as far as I have searched, I could not find anything. Has anyone faced this problem before?

    this is cmd log: 
    C:\Users\Gediminas\dev>cordova create test com.dnc.test test
    Creating a new cordova project with name "test" and id "com.dnc.test" at location "C:\Users\Gediminas\dev\test"

    C:\Users\Gediminas\dev>cordova platform add wp7
    Current working directory is not a Cordova-based project.

    C:\Users\Gediminas\dev>cd test

    C:\Users\Gediminas\dev\test>cordova platform add wp7
    Checking wp7 requirements...
    Creating wp7 project...
    platformRoot = C:\Users\Gediminas\.cordova\lib\wp\cordova\3.5.0\wp7
    repoRoot = C:\Users\Gediminas\.cordova\lib\wp\cordova\3.5.0
    Creating Cordova-WP7 Project:
            App Name : test
            Namespace : com.dnc.test
            Path : C:\Users\Gediminas\dev\test\platforms\wp7
    CREATE SUCCESS : C:\Users\Gediminas\dev\test\platforms\wp7

    C:\Users\Gediminas\dev\test>cordova build wp7
    Running command: C:\Users\Gediminas\dev\test\platforms\wp7\cordova\build.bat

    WARNING: [ --debug | --release ] not specified, defaulting to debug...
    Cleaning cordova project...
    Building Cordova-WP7 Project:
            Configuration : Debug
            Directory : C:\Users\Gediminas\dev\test\platforms\wp7
            MSBuildToolsPath: C:\Windows\Microsoft.NET\Framework64\v4.0.30319\
    buildCommand = %comspec% /c ""C:\Windows\Microsoft.NET\Framework64\v4.0.30319\msbuild" "C:\Users\Gediminas\dev\test\platforms\wp7\
    test.sln" /clp:NoSummary;NoItemAndPropertyList;Verbosity=minimal /nologo /p:Configuration=Debug"
      Microsoft (R) Windows Script Host Version 5.8
      Copyright (C) Microsoft Corporation. All rights reserved.

      Arg :: C:\Users\Gediminas\dev\test\platforms\wp7\test.csproj
    Error: C:\Users\Gediminas\dev\test\platforms\wp7\cordova\build.bat: Command failed with exit code 2
        at ChildProcess.whenDone (C:\Users\Gediminas\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\src\cordova\sup
        at ChildProcess.EventEmitter.emit (events.js:98:17)
        at maybeClose (child_process.js:753:16)
        at Process.ChildProcess._handle.onexit (child_process.js:820:5)

  2. Tina Stancheva
    Tina Stancheva avatar
    3299 posts

    Posted 30 May 2014 Link to this post

    Hello Gediminas,

    Looking at the stack trace you provided, it seems that you're trying to build a project with the PhoneGap CLI. However, if you have created the project with AppBuilder you will not be able to build it with the PhoneGap Command-Line interface out-of-the-box. You will have to convert the project into a PhoneGap project . We don't have such examples, but we do have a post describing how to convert a PhoneGap project to an AppBuilder project and perhaps you'll be able to use the information it provides and perform the opposite operation.

    Still, if you are using the AppBuilder to create hybrid apps, then I would recommend using the AppBuilder build options and tools. For instance, you can use the AppBuilder Command-Line Interface further described in our documentation. In order to install the tool you can follow the steps outlined in the Download and Install the AppBuilder Command-Line Interface tutorial.

    Tina Stancheva

    Share what you think about AppBuilder and Telerik Platform with us in our feedback portal, so we can become even better!

  3. Asad
    Asad avatar
    1 posts
    Member since:
    Jul 2014

    Posted 23 Jul 2014 in reply to Tina Stancheva Link to this post

    Hi Tina.
    I have same problem like Gediminas.
    i am running app on android ,ios , blackberry app runs successfully.
    problem only in wp7.
    converting cordova to phonegap its not good solution.
    any else solution?
  4. Tsvetina
    Tsvetina avatar
    2323 posts

    Posted 28 Jul 2014 Link to this post

    Hello Asad,

    Please note that Telerik AppBuilder does not support building apps for Windows Phone 7 (Blackberry as well).

    Can you confirm that the problem that you are describing has occurred in an app that you created using Telerik AppBuilder? If not, you could ask for help with this problem on a developer community board like Stack Overflow.


    Visit the Telerik Verified Plugins Marketplace and get the custom Cordova plugin you need, already tweaked to work seamlessly with AppBuilder.

Back to Top