This is a migrated thread and some comments may be shown as answers.

cordova - can not build app

3 Answers 250 Views
Apache Cordova
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Gediminas
Top achievements
Rank 1
Gediminas asked on 27 May 2014, 02:37 PM
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
erspawn.js:131:23)
    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)

C:\Users\Gediminas\dev\test>

3 Answers, 1 is accepted

Sort by
0
Tina Stancheva
Telerik team
answered on 30 May 2014, 02:32 PM
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.

Regards,
Tina Stancheva
Telerik
 

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

 
0
Asad
Top achievements
Rank 1
answered on 24 Jul 2014, 04:17 AM
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?
0
Tsvetina
Telerik team
answered on 28 Jul 2014, 08:52 AM
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.

Regards,
Tsvetina
Telerik
 

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

 
Tags
Apache Cordova
Asked by
Gediminas
Top achievements
Rank 1
Answers by
Tina Stancheva
Telerik team
Asad
Top achievements
Rank 1
Tsvetina
Telerik team
Share this question
or