Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to start debugging in Visual Studio RTM for cordova app

I have a project that was working on RC and worked with no problems. Updated to RTM and now I cannot start the application

I also created a new black cordova app and still can't start the application.

Looked everywhere and found no reference to this problems. Others suggest that environment variables are not set or tools not installed. I triple checked and environment variables are fine and tools are indeed installed.

I uninstalled everything (including git) from programs and features and reinstalled vs2015 RTM with no success, same problem.

I also installed extra stuff from android sdk manager, no luck.

No idea what's wrong and the error message visual studio gives no clue.

Enviroment pathserror messageempty dropdownandroid sdk manager

like image 456
Bart Calixto Avatar asked Jul 21 '15 03:07

Bart Calixto


People also ask

How do I run a Cordova project in Visual Studio?

Select Add new app from the menu. Enter a name for your application project, adding an optional description as needed. Select the appropriate OS for your application project (Android or iOS only), then select the Cordova platform option. Click the Add new app button on the bottom-right corner of the page.

How do you inspect Cordova app?

Launch your cordova App by running cordova run android or installing the app with adb ( adb -d install -r platforms/android/build/outputs/apk/android-debug. apk ) and launching it manually. You should be able to see it in the devices list on your Chrome. Click on the "Inspect" link and there you go!


2 Answers

Looks like a library is corrupted from the upgrade. Please give this a try:

  1. Close all VS instances
  2. cd %appdata%\"..\Local\Microsoft\Phone Tools"
  3. rename CoreCon folder to something else
  4. Launch VS again.

That's it.

like image 93
Leo Avatar answered Sep 29 '22 07:09

Leo


The answer from Leo works for me.

Here the documentation of my research, if it does not work for any other user.

Watch the output, to get your specific cause. Increase the build-Verbosity in VS-Options.

go to Tools -> Options -> Tools for Apache Cordova, click the 'Run Dependency Checker'.

Check the installed Visual Studio features, this is selected by default:

VS for Cordova-Development

Compared to msdn:Install Tools for Cordova

Add also:

  • Emulator for Windows Phone 8.1
  • Android Native Development Kit (R10E, 32 bits)

And if you still get no emulator after compiling a blank cordova app:

no preinstalled 8.1. Emulator

I think then you have to install google chrome: msdn "The installer does not install Google Chrome, which is required if you want to run the Apache Ripple simulator for iOS and Android, and it does not install Apple iTunes, which is required for deploying an app to an iOS device connected to your Windows PC."

Also check your Hyper-V Settings:

I'm checking out the Tools\Visual Studio Emulator for Android: Activated Emulator Message

Check the SystemRequirements

Check this link: Troubleshooting the Visual Studio Emulator for Android

Or give "reinstalling node.js" a chance. Wait for "Setup Repair" again.

Hope my documentation here helps someone.

like image 39
gReX Avatar answered Sep 29 '22 06:09

gReX