I am totally new to Apache Cordova tools with VS 2015. I just tried to create basic initial project, added nothing more and trying to build it, but it fails everytime.
For the specific error I get, I performed all the steps mentioned at:
Configuring Apache Cordova with VS2015.
I am not able to get rid of this error and run the most basic project.
Here is my sample code: https://1drv.ms/f/s!ApUTYQW5TdbIgzrPGeUkxWVmmy0Z
I ran into this problem and was able to solve it using the solution here: https://stackoverflow.com/a/31688018/4045156
The solution is for a slightly different problem, but in my case it did resolve it. :)
EDIT: here's the solution from that post:
Close all VS instances
cd %appdata%\"..\Local\Microsoft\Phone Tools"
rename CoreCon folder to something else
Launch VS again.
As mentioned in the official link - configure VS tools for Apache Cordova which you are following,
If you see unexpected errors when trying to build the Blank App template after installing Visual Studio Tools for Apache Cordova, you can try clearing your cache and reinstalling the Cordova CLI pre-processor, vs-tac, on your PC.Typically, this is only necessary if you try to build a Cordova app and see the error Cannot find module [modulename].
For other errors, you may have to look at workarounds link.
According to me, clearing cache should resolve the issue or this issue would have got introduced in latest version of Visual Studio once again.
I also suggest you to look at the following SO posts which should help you out in this issue.
VS dont work with TACO
Error with cordova using VS
Hope this helps. Cheers.
Related
In Visual Studio Installer, I selected the Node.js development option. It runs successfully. But, if I try to run cmd node -v. It tells me node does not exist.
I tried a few other things including uninstalling and reinstalling the Node.js development option in VS Installer. Plus installing the latest version of node from the website.
However, when I try to run the pre-packed Angular solution that comes with VS 2017 I have issues. The solution will not even start.
The best I have been able to do is install Node 6.10.3. Once I do that, the web site comes up. But, I get a JavaScript error in the vendor.js file. I am able to continue but I get this error when I try navigate to another menu item. Plus the Hot Module Replacement does not seem to be working. (It does not automatically recompile my TypeScript file if I made a change).
I think the key is getting the Node.js development option installed correctly since I am able to run the pre-packed Angular solution on another PC and the Hot Module Replacement works fine.
Please let me know if anyone has any ideas on how to resolve.
I had a similar, if not the same, issue. Check the Visual Studio installation directory (2017 Professional in this case) for Node:
C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\Microsoft\VisualStudio\NodeJs
If the executable is there, add the directory to your PATH.
Before i start, i will warn you guys that im not an app developer and that i did not code this app, and that i have no expirience with apache cordova.
So i'm using apache cordova in visual studio 2013 and i'm here trying to get the release .apk but when i try to run a release build on a device i get the following error.
"Android packages must be signed when debugging using the Release or Distribution configurations." I've been googling solutions to this but i could not find any, though i did find that i need to change several things to get the .apk file i want.
So the first step would be making a keystore for the app right? Well, i have no clue on how to do this, and all the answers i found where using the cordova cli which i don't even know how to open. Can anyone tell me what a keystore is and how do i get it. If i need to use the cordova cli how do i open it.
After this, what should i do?
I've tried setting up all the paths what all were suggested by programmers in the following link enter link description here
But still i'm getting the error. I've have attached an image regarding this, if anyone faced the same problem and were able to solve them , please do send in the procedure to solve this problem.
My Environment Variables are as follows:
--------SYSTEM VARIABLES--------------
PATH: C:\Program Files\Java\jdk1.7.0\bin;
JDK_HOME:C:\Program Files\Java\jdk1.7.0_79
JAVA_HOME:C:\Program Files\Java\jdk1.7.0_79
also that I'm even having 2 JDKs installed "jdk1.7.0" and jdk"1.7.0_79" , will this make any difference ?
Had the same problem. Just quit Android Studio installer, reboot after installing java sdk and restart Android Studio installert. Worked for me.
I'm not being able to build a Cordova app in Visual Studio 2013. The build starts but freezes a couple of seconds later.
This last output line from the build process:
Could not find Cordova as a local module. Expecting to find it
installed globally.
I've countless times ran the Cordova install command (globally) on node.js and still get the same build error.
I'm not sure how to get around this issue.
Does anyone has an idea what's the problem or what I'm missing ?
I had same problem and i tried bunch of solutions... The problem was salved by change settings in my firewall. I observed that the firewall blocks one of js process(node.exe). When I turn off firewall the VS unfreezes. So I reconfigured it and my problem disappeared. I use win 7 64 bit, and VS 2013 update 4.
You can also try switch on the x64 IIS(if you're using 64bit OS): Cordova Tools for Visual Studio 2013 CTP3 crashes or gets freezed
and/or update the Web Essentials Nightly:
http://www.roelvanlisdonk.nl/?p=3989
Visual Studio 2012 becomes corrupt when I tried to install WiX 3.8. This is what happens...
Following a successful WiX install I try to run VS2012 and get the splash screen followed by this error "Exception has been thrown by the target of an invocation". Clicking on ok simply places me on the desktop. The only solution is to re-install VS2012. I tried un-installing everything and starting over several times but no luck. I cannot find any information on this exact topic anywhere online including WiX forums. Does anyone have ideas on what I should try next?
Rudy
I just had the same problem after installing WiX 3.8. Basically even more problems as Explorer and other system application could not be started anymore.
The root cause was a change in the PATH environment variable which ended up to be more than 2048 chars and therefore the %windir% var was not accessible anymore.
Try to remove some unnecessary paths in PATH environment variable as described here:
https://superuser.com/questions/355594/windows-7s-path-and-environment-variables-are-corrupted
At least for me, it worked afterwards again.
Cheers and good luck