I currently get the following error when attempting to run a hybrid app using the new cordova ctp for Visual Studio 2013.
Error 11 The command
""C:\Users\Nick\AppData\Roaming\npm\node_modules\vs-mda\vs-cli"
prepare --platform Android --configuration Debug --projectDir .
--projectName "BlankCordovaApp2"" exited with code 1. C:\Users\Nick\AppData\Roaming\npm\node_modules\vs-mda-targets\Microsoft.MDA.targets 115 5 BlankCordovaApp2
Do I need to install something else?
In certain cases, VS does not immediately detect the Android path after installation. Rebooting your machine is the only option for now.
for me I just deleted the bld folder and everything has become right
Related
My Visual Studio Enterprise Hangs after i build and run my Cordova Application. Take note that I have not done anything yet but create the app then run it.
I tried changing my CLI to: 5.3.3 but still gives the same problem.
My current CLI version is 6.1.2
Help
I'm facing a problem when I'm trying to test a Cordova App in my Windows Phone.
First, my configuration:
Windows 8 Enterprise 64
Visual Studio Enterprise 2015, logged in with my Microsoft account
Windows 8.1 SKD
Application developed with Cordova, Ionic Framework
Windows Phone 8 (Nokia Lumia 625)
I'm able to run the application in an emulator, but when I'm trying to debugging my application on my Windows Phone, I got this error:
Severity Code Description Project File Line Suppression State
Error MSB6006 "MakeAppx.exe" exited with code 1. [C:\Projects\Tests\BlankCordovaApp6\BlankCordovaApp6\platforms\windows\CordovaApp.Phone.jsproj] BlankCordovaApp6
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\AppxPackage\Microsoft.AppXPackage.Targets 2439
I've setted the build output to detailed, and got this log:
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\AppxPackage\Microsoft.AppXPackage.Targets(2439,5): error MSB6006: "MakeAppx.exe" exited with code 1. [C:\Projetos\Testes\BlankCordovaApp6\BlankCordovaApp6\platforms\windows\CordovaApp.Phone.jsproj]
1>MDAVSCLI : error : Error code 1 for command: C:\Program Files (x86)\MSBuild\14.0\bin\msbuild with args: C:\Projetos\Testes\BlankCordovaApp6\BlankCordovaApp6\platforms\windows\CordovaApp.Phone.jsproj,/clp:NoSummary;NoItemAndPropertyList;Verbosity=minimal,/nologo,/p:Configuration=debug,/p:Platform=arm
1> Command finished with error code 2: cmd /s /c "C:\Projects\Tests\BlankCordovaApp6\BlankCordovaApp6\platforms\windows\cordova\build.bat --debug --archs=arm --phone --buildConfig=C:\Projects\Tests\BlankCordovaApp6\BlankCordovaApp6\build.json"
1>ERROR building one of the platforms : error : cmd: Command failed with exit code 2
1> You may not have the required environment or OS to build this project
1>MDAVSCLI : error : cmd: Command failed with exit code 2
1> Done executing task "MdaVsCli" -- FAILED.
After read this log, I reinstaled the SDK after noticed this line You may not have the required environment or OS to build this project, but no success
I've also tried to run with this command line, but same error:
cordova run --debug windows --device -- --phone --appx=8.1-phone
I've followed the steps here, but no success too:
https://taco.visualstudio.com/en-us/docs/run-app-windows-phone/
Any help and suggestions are welcome. Thanks.
UPDATE:
Following the #rido, I've tried to create a Windows Store App.
My VS2105 doesn't have this template, so I've installed. After created a empty Store App, Visual Studio asked to update my Microsoft Developer Licence.
Then, when I tried to build, I got an error noticing I was missing some platform requirements.
Looking for a solution, I followed the steps in this link: http://taco.visualstudio.com/en-us/docs/install-vs-tools-apache-cordova/
After updated VS2015 Cordova, I was able to deploy for Android and Windows Phone but prior I had to register my Windows Phone for development, following this link: https://msdn.microsoft.com/pt-br/library/windows/apps/ff769508(v=vs.105).aspx
I hope these notes can help anyone else that has similar issues.
I followed the steps in this link, but no success: http://taco.visualstudio.com/en-us/docs/install-vs-tools-apache-cordova/
After updated VS2015 Cordova, I was able to deploy for Android and Windows Phone but prior I had to register my Windows Phone for development, following this link: https://msdn.microsoft.com/pt-br/library/windows/apps/ff769508(v=vs.105).aspx
Hope this can help anyone with similar issue.
I am trying out a trivial index.html file in the multi-device-hybrid-app in visual studio 2013. I could easily run it on android emulator. However, running on windows platform I ran into the following error.
cordova library for "wp8" already exists. No need to download. Continuing.
Generating config.xml from defaults for platform "wp8"
Calling plugman.prepare for platform "wp8"
Running command: C:\temp\projects\BlankCordovaApp1\BlankCordovaApp1\bld\Debug\platforms\wp8\cordova\run.bat --nobuild --emulator
Deploying to emulator ...
ERROR: command failed in deploy.js : "C:\temp\projects\BlankCordovaApp1\BlankCordovaApp1\bld\Debug\platforms\wp8\cordova\lib\CordovaDeploy\CordovaDeploy\bin\Debug\CordovaDeploy.exe" "C:\temp\projects\BlankCordovaApp1\BlankCordovaApp1\bld\Debug\platforms\wp8" -d:1
Unhandled Exception: System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
at System.ThrowHelper.ThrowArgumentOutOfRangeException()
at System.Collections.Generic.List`1.get_Item(Int32 index)
at System.Collections.ObjectModel.Collection`1.get_Item(Int32 index)
at CordovaDeploy.DeployTool.GetDeviceAtIndex(Int32 index) in c:\temp\projects\BlankCordovaApp1\BlankCordovaApp1\bld\Debug\platforms\wp8\cordova\lib\CordovaDeploy\CordovaDeploy\Program.cs:line 124
at CordovaDeploy.DeployTool.Main(String[] args) in c:\temp\projects\BlankCordovaApp1\BlankCordovaApp1\bld\Debug\platforms\wp8\cordova\lib\CordovaDeploy\CordovaDeploy\Program.cs:line 208
Command finished with error code 2: C:\temp\projects\BlankCordovaApp1\BlankCordovaApp1\bld\Debug\platforms\wp8\cordova\run.bat --nobuild,--emulator
The interesting thing is that it also creates a new solution in the
C:\temp\projects\BlankCordovaApp1\BlankCordovaApp1\bld\Debug\platforms\wp8
folder and if I open that solution, compile and run it, it just works fine on windows phone 8.1 emulator. Any ideas what I am doing wrong? I have set the paths correctly in visual studio 2013 I believe!
Looking into the error message it seems program failed to find any emulators at all for WP8. CPT2.0 used CordovaDeploy.exe to get the list of available WP8 emulators/devices which was buggy. It seems this issue was fixed in latest release of Visual Studio Tools for Apache Cordova -- CPT3.0. Follow the below steps to install CPT3.0
Uninstall Visual Studio Apache Cordova Multi-Device Hybrid App CPT2.0
Install Visual Update 4 from here
Install CPT 3.0 from here
Refer this for uninstall issue http://support.microsoft.com/kb/3014133
I'm trying to create a BlankCordovaApp with visual studio 2013 and installed all the pre-requests as far as I know but there is still errors and warnings in output window.
I've done configurations for system environment so VS could find all it's needs.
What's this error about and how could I find and guidance for it? Thank you
Error 15 The command ""C:\Users\MyPC\AppData\Roaming\npm\node_modules\vs-mda\vs-cli" build --platform "Windows-
AnyCPU" --configuration "Debug" --projectDir . --projectName "BlankCordovaApp2" --language "en-US" "--AnyCPU"" exited with
code 1. C:\Users\MyPC\AppData\Roaming\npm\node_modules\vs-mda-targets\Microsoft.MDA.targets 96 5
BlankCordovaApp2
When I click on error VS shows these lines of codes
<Exec Command='"$(AppData)\npm\node_modules\vs-mda\vs-cli" build --platform "$(Platform)" --configuration "$(Configuration)" --projectDir . --projectName "$(ProjectName)" --language "$(LangName)" "--$(Platform.Substring(8))"' Condition=" '#(BuildMDACpuSpecificPlatform)' != '' " CustomErrorRegularExpression="$(MDACustomErrorRegEx)" StdOutEncoding="UTF-8" StdErrEncoding="UTF-8"/>
Error Code 1 almost always suggests that the Windows SDK is missing. To fix that, do the following:
In Control Panel, choose Programs and Features. Select Visual Studio 2013 from the list, and then choose Change. In the Visual Studio setup window, choose Modify. In the features list, ensure that these 2 options are check marked:
Tools for Maintaining Store apps for Windows 8
Windows Phone 8.0 SDK
Once you're done installing these packages, try building the app again, the problem should have been resolved.
I've decided to try PhoneGap and installed the Node package for it. (Phonegap 3.3.0)
Android projects work fine. But when I try to build a WP8 (or WP7) App I get this error:
An error occurred while building the wp7 project.ERROR: MSBuild failed
to create .xap when building cordova-wp7 for debugging.
I'm running Windows 8 Pro 64 bit, Visual Studio 2013 Ultimate, NodeJS & PhoneGap 3.3.0
A sidenote: WP8 Projects created with the Cordova Project Templates work perfectly fine.
It's the command line version that's giving me trouble.
I faced the same issue...
Perhaps it's an issue of the required files (for compilation) not being at the said path, since I could resolve it by running in the Visual Studio Command Prompt & compile successfully: