0

I'm trying to deploy my simple app on Windows/WP 8.1 and Android with Cordova tools and VS2015 CTP 5.

When I'm choosing "Windows Phone (Universal)" or "Windows" I'm getting the following error:

"Value cannot be null. Parameter name: source"

When I'm choosing Microsoft "Android Emulator" for Visual Studio, I'm getting blank black adb console window.

How can I solve this problems? Thanks.

Mike Jones
  • 322
  • 1
  • 4

3 Answers3

0

Does your app run against other Android targets? If so, you might check this post for a few common Windows-specific issues: http://blogs.msdn.com/b/msdn_answers/archive/2015/02/10/running-cordova-apps-on-windows-and-windows-phone-8-1-using-ionic-angularjs-and-other-frameworks.aspx

Mike Jones
  • 322
  • 1
  • 4
  • Hi, 1. The app failed to run on android target, after the build it stuck on blank adb screen. 2. The problem occures on VS2015 CTP 5. My VS2013 works fine. – DevMagic Feb 13 '15 at 19:31
  • The projects failed to run on other Android targets. – DevMagic Feb 13 '15 at 19:46
0

On your Android emulator question, if "Visual Studio Emulator for Android" does not appear in Add/Remove Programs, you'll need to go to Add/Remove Programs->Visual Studio 2015 CTP5, modify the installation, and add the Visual Studio Emulator for Android.

If "Visual Studio Emulator for Android" does appear in Add/Remove Programs, then the blank adb.exe window is a known issue in CTP5 that occurs sometimes when Cordova Tools and the Android Emulator are unable to communicate. To verify that this is the problem, create a new Visual C++ Android Native Activity project and attempt to run the default empty project against the emulator ("VS Emulator KitKat Phone"). If you are able to connect and run the emulator in a Visual C++ Native Activity application, then the issue is with Cordova Tools, and you can follow the steps below:

  1. Go to your Program Files directory and navigate to "Microsoft Visual Studio 14.0\Common7\IDE\Extensions\"
  2. Search for Microsoft.VisualStudio.MultiDeviceHybridApps.dll. There will be two copies in "Microsoft Visual Studio 14.0\Common7\IDE\Extensions\"
    • One will be underneath the "Microsoft\Emulator for Android" folder
    • The other will be under a folder with a random hash name (always changes, but it will be something unreadable like "xf1nsyzl.5ur").
  3. Copy the version of Microsoft.VisualStudio.MultiDeviceHybridApps.dll from the second folder (the one with the random hash name) in to the "Microsoft\Emulator for Android" folder (replacing the old version in that location).
  4. Navigate to "C:\Users[your username]\AppData\Local\Microsoft\VisualStudio\14.0\Extensions" and delete the contents of this folder (it's the cache).

Restart Visual Studio and the Visual Studio Emulator for Android should work properly in Cordova projects.

John Engel-Kemnetz
  • 2,527
  • 22
  • 22
  • I tried your second solution, now I have errors on system variables that I need to configure (ANDROID_HOME and etc.). I'll take a look at it. But, I still can't deploy on Windows platforms (phone and tablet), how can I solve this? The Cordova tools deployment is broken on VS2015CTP? – DevMagic Feb 14 '15 at 08:21
  • For your android issue, I resolved it. Try this: https://stackoverflow.com/questions/28116752/unable-to-get-ripple-session-info-exception-contentp-body/28137362#28137362 – VeldMuijz Feb 16 '15 at 11:23
0

I am experiencing the same symptoms. It happens periodically and the only solution seems to be uninstalling and re-installing VS2015 CTP5. Everything works for a few hours and then when the errors occurs once, there seems to be no immediate way to fix it. (rebooting, cleaning solution, etc)

"Value cannot be null. Parameter name: source"

tsdude
  • 187
  • 1
  • 6