12
votes

When I try to deploy an application in VS 2015 with Tools for Apache Cordova (TACO), I get this error:

Unable to start program C:\users\pc\AppData\Local\Android\android-sdk\platform-tools\adb.exe

operation not supported. unknown error 0x80070057

I have confirmed that adb.exe exists in my computer

8
Update to the latest of VS 2015 and it will include all the latest bug fixes for Apache Cordova projects. Hard to help when using RC versions.Scott Wylie
LOL wrong answer, scott. Just upgraded from a working version to update 2 of the Cordova toolkit for VS2015 and I got this error in a previously working project. Totally hosed my install. Reinstalling android sdk tools didn't fix it either... I'm running vs2015 Professional, v14.0.23107.0 D14RELBon
Another symptom is with Ripple: Unable to get launched browser process for Ripple. Unable to get Ripple session info. Exception: Unable to connect to the remote server. Please close all instances of Chrome and try again.Bon
Trying a repair on MSVS Tools for Apache Cordova now. Will report on results.Bon
After repair, different ripple error: Unable to get launched browser process for Ripple. Unable to get Ripple session info. Exception: Object reference not set to an instance of an object.. Please close all instances of Chrome and try again.Bon

8 Answers

6
votes

Just got a response from Microsoft! Here is the answer that fixed it for me.

1) Delete this folder: C:\Users\[username]\appdata\local\microsoft\VisualStudio\14.0\ComponentModelCache

2) Open Visual Studio and create a new blank cordova project. This will regenerate the deleted folder.

3) Debug the blank project in ripple, first run may complain about a problem with Chrome and the debugger may fail to connect. Close chrome after this, and try debugging one more time and it should connect as desired.

4) Enjoy a once-more functioning development environment!

3
votes

Just for record, nothing above helped out with this issue.

After some effort, I decided to get a previous version of code, since I already had published the application on an Android device and didn't happend this error.

I noticed that I've made some changes in config.xml, and the change that was causing the problem was the "Package Name" on "Common" section. I've put a capitalized name, like "Mycompany.Packagename". When I changed to "com.mycompany.packagename", worked like a charm.

It's strange, since the error does not appear to be related to this, but I've tested and could simulate and replicated the error, so this is a warning: use lower case in the Package Name field.

1
votes

It may be that simply performing the fix outlined at this link is sufficient: Error: SetSite failed for package [ApacheCordovaToolsPackage]

But I didn't try it until I went through a full uninstall/reinstall of VS2015 pro.

Hidden folders at same level as .sln: in path: .vs/{solutionname}/v14/

delete the file ".suo"

This fixed it for me.

1
votes

The answer of kltzib worked for me!! But more simple.

1) Delete this folder: C:\Users[username]\appdata\local\microsoft\VisualStudio\14.0\ComponentModelCache

2) Open Visual Studio and debug the existing project.

1
votes

I found the solution to fix this issue on my project by directly running the ADB command to install the APK file on my device to make it so I can see the actual reason the deploy to my phone was failing:

adb install android-debug.apk

Which gave me the error:

Failure [INSTALL_FAILED_UPDATE_INCOMPATIBLE]

which I was then able to google and find the solution to that problem.

Mine was failing because I had deleted my test version of the app from my phone but the reinstall of the test app was failing because the production app was loaded.

INSTALL_FAILED_UPDATE_INCOMPATIBLE when I try to install compiled .apk on device

Your problem may be different than mine, but this methodology may allow you to track your problem down.

1
votes

I uninstalled the app from device, then tried to debug again; and it worked!

0
votes

I've recently had same issue when trying to deploy/debug release version of app on both device and emulator.

Problem was solved when i signed my app with valid key for google play store.

0
votes

I also have this problem and after spend a lot time I solve it. The problem was in the file "config.xml" in the first line:

<?xml version="1.3" encoding="UTF-8" standalone="yes"?>

I change to the same but version="1.0":

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>

For some reason the visual studio threw me some time ago a compiler error due to this, but it stopped throwing it.