Error adb.exe when running Visual Studio 2015 RC

12

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

cordova
visual-studio-2015
asked on Stack Overflow Sep 17, 2015 by user_odoo • edited Jan 10, 2016 by Matt DeKrey

8 Answers

6

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!

answered on Stack Overflow Oct 14, 2015 by Bon
3

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.

answered on Stack Overflow Jun 16, 2016 by Ricardo Pontual
1

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.

answered on Stack Overflow Sep 19, 2015 by Bon • edited May 23, 2017 by Community
1

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

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.

answered on Stack Overflow Apr 24, 2017 by TechSavvySam • edited May 23, 2017 by Community
1

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

answered on Stack Overflow May 8, 2017 by BratB
0

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.

answered on Stack Overflow Feb 10, 2016 by onedevteam.com
0

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.

answered on Stack Overflow Apr 18, 2016 by vgc

User contributions licensed under CC BY-SA 3.0