13

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

Matt DeKrey
  • 11,582
  • 5
  • 54
  • 69
user_odoo
  • 2,284
  • 34
  • 55
  • 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 Sep 18 '15 at 04:12
  • 1
    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 D14REL – Bon Sep 18 '15 at 05:05
  • 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 Sep 18 '15 at 05:10
  • Trying a repair on MSVS Tools for Apache Cordova now. Will report on results. – Bon Sep 18 '15 at 05:13
  • 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 Sep 18 '15 at 05:21
  • Guess my only next option is to remove everything in update 2. Might have to do wtih the TypeScript tools 1.6.3.0 also. Let's find out! – Bon Sep 18 '15 at 05:27
  • @klatzib What is your proposal for me? – user_odoo Sep 18 '15 at 06:14
  • be patient for a solution is my proposal, I'm still trying. Been through 4 reboots trying different configs. – Bon Sep 18 '15 at 06:21
  • @klatzib Here is output text after deploy http ://goo.gl/oBq8dA – user_odoo Sep 18 '15 at 06:32
  • @klatzib How view minimum android version for aplication in visual stuido? I get .apk file but can not install on my android 4.2.2 – user_odoo Sep 18 '15 at 06:34
  • nothing i tried worked including visual studio command line as admin calling devenv /setup nor devenv /installVSTemplates. Going to do full uninstall/reinstall now. This sucks. – Bon Sep 18 '15 at 08:28
  • Just got off a support session with Microsoft. They just became aware of this issue in the last few days and are hunting down the cause and solution. Will provide an answer if I get one then. – Bon Oct 12 '15 at 21:48

8 Answers8

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!

Bon
  • 1,083
  • 12
  • 23
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.

Ricardo Pontual
  • 3,749
  • 3
  • 28
  • 43
2

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.

Community
  • 1
  • 1
TechSavvySam
  • 1,382
  • 16
  • 28
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.

Community
  • 1
  • 1
Bon
  • 1,083
  • 12
  • 23
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.

  • Still facing this issue after trying both Bon's solution and Nacho's way. However, none of them working!! – TechTurtle Jun 08 '16 at 18:05
  • 1
    I am able to build/ deploy a new blank cordova project, but the existing one - I am unable to deploy on device. It is working on Ripple though. – TechTurtle Jun 08 '16 at 18:08
  • this worked for me. Had "...unknown error 0x80070057" no andoid sdk involved. A simple VS webforms app. – t.durden Feb 05 '17 at 13:45
1

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

BratB
  • 21
  • 1
  • 2
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.

onedevteam.com
  • 3,838
  • 10
  • 41
  • 74
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.

vgc
  • 115
  • 1
  • 7