Protocol Failure when using "Install on Android Device"

You must Login before you can answer or comment on any questions.

When trying to install a very simple application onto an HTC Evo 4G using the "Install on Android Device" option, I get the following error:

[DEBUG] C:\proj\Android\android-sdk\platform-tools\adb.exe -d install -r "C:\proj\workspace\Hello World\build\android\bin\app.apk"
[ERROR] protocol failure
However, if I go to the terminal and run the following command, it works:
C:\proj\Android\android-sdk\platform-tools\adb.exe install "C:\proj\workspace\Hello World\build\android\bin\app.apk"
Does anyone know what the problem is. Does it have to do with the -d or -r options or is there something else going on? Thanks for your help.

6 Answers

I Think i got the solution its works for me this problem is only in HTC device its due to the HTC Sync installed and running with titanium studio. we just need to stop htc sync from the task bar right hand side corner and clean project again it should work

Hey david,

I don't know i you solved it yet but try to clean your project build.

Project > Clean...

That worked for me.

Regards,

Tim

Thanks for the help! That seems to help sometimes but other times I find I just need to restart Titanium Studio. Anyhow, the more I am experimenting with installing it on a device, it seems to work most of the time.

same here using htc desire HD, getting same problem while installing in device. project clean and restart is just temp solution. specially after installing sdk 1.7.5 i m getting that issue more often and on top of that installation process is very slow.

— answered 2 years ago by ashok siyani
answer permalink
3 Comments
  • This is the error i get some times:- [ERROR] Exception occured while building Android project: [ERROR] Traceback (most recent call last): [ERROR] File "C:\ProgramData\Titanium\mobilesdk\win32\1.7.4\android\builder.py", line 1977, in <module> [ERROR] s.build_and_run(True, avd_id, device_args=device_args) [ERROR] File "C:\ProgramData\Titanium\mobilesdk\win32\1.7.4\android\builder.py", line 1851, in build_and_run [ERROR] launched, launch_failed = self.package_and_deploy() [ERROR] File "C:\ProgramData\Titanium\mobilesdk\win32\1.7.4\android\builder.py", line 1442, in package_and_deploy [ERROR] error(e) [ERROR] File "C:\ProgramData\Titanium\mobilesdk\win32\1.7.4\android\builder.py", line 109, in error [ERROR] log.error(msg) [ERROR] File "C:\ProgramData\Titanium\mobilesdk\win32\1.7.4\android\tilogger.py", line 64, in error [ERROR] print "[ERROR] "+msg [ERROR] TypeError: cannot concatenate 'str' and 'exceptions.Exception' objects

    — commented 2 years ago by ashok siyani

  • Did any one found solution for this i tried deleting virtual devices and cleaning project but no luck ?????///

    — commented 2 years ago by ashok siyani

  • just found on internet adb install protocol failure is related to usb debugging. solution on internet is to take battery out and try again. it didnt work for me still getting same error but it might work for you.

    — commented 2 years ago by ashok siyani

Stopping the HTC Sync in task bar sorted this problem on the HTC Desire HD.

Your Answer

Think you can help? Login to answer this question!