20

this morning when I start doing my daily routine(opening android studio 1.5.1 in my PC - lubuntu 32 bit) I encounter an error after I try to run my application to my device. This is the android studio error:

Error running app: Unable to obtain debug bridge
Unable to detect adb version, adb output: /root/Android/Sdk/platform-tools/adb: 1: /root/Android/Sdk/platform-tools/adb: Syntax error: ")" unexpected

I was looking for possible solution for hours now through internet but can't find same error as this. I already try some other remedies but still no luck of solving it. Can you help me guy? Thanks in advance.

Alex P.
  • 30,437
  • 17
  • 118
  • 169
Rhusfer
  • 571
  • 1
  • 9
  • 14
  • I have i686 GNU/Linux (Ubuntu 14.10) – Rhusfer Dec 11 '15 at 06:35
  • 1
    yepeey..solved the problem. I downgraded my platform-tools to r23.0.1 (which is i think not ideal, I guess?). I don't know if r23.1 is buggy or it's because of my root permissions. I copy and paste r23.0.1 which i downloaded from [here](https://aur.archlinux.org/packages/android-sdk-platform-tools/) .. now it's working fine :) – Rhusfer Dec 11 '15 at 08:11

4 Answers4

36

for 32bit users... Don't update "platform-tools" to version 23.1.

foremost version you can use is 23.0.1 which you can download here

If you are on 64bit machine and having trouble using the latest version of the plateform-tools.. check instructions here.

thanks for the working link- @Tyler

Siddharth
  • 9,349
  • 16
  • 86
  • 148
Arnav M.
  • 2,590
  • 1
  • 27
  • 44
  • Yep, I had to downgrade back to 23.0.1. I got the platform-tools folder from here and replaced the one in my Android directory. http://theandroidbeta.blogspot.com/2015/11/direct-download-android-sdk-platform-tools-rev-23.0.1-and-23.1-beta-offlne-install-november-2015.html – s3kt0r Dec 11 '15 at 16:37
  • do you know what's the root cause of this error? Is it a bug on r23.1? – Rhusfer Dec 12 '15 at 09:22
  • as android people already said, they are moving to 64bit environment.. now they no more support 32bit environment. – Arnav M. Dec 14 '15 at 05:12
  • how do I install it ? please – JoeCoolman Dec 25 '15 at 04:00
  • first delete the plateform-tools folder in SDK directory then extract downloaded file in your SDK directory. – Arnav M. Dec 25 '15 at 07:44
  • 1
    @ArnavM. as of January 2nd, that link doesn't download the proper platform-tools for me on Ubuntu 15.10. I was able to use the link provided by user Nikunj (https://dl-ssl.google.com/android/repository/platform-tools_r23.0.1-linux.zip) found from Yair Kukielka's answer below without problems. Maybe consider changing the link? – Tyler Jan 02 '16 at 22:35
  • @ArnavM. A heads up from Google would have been nice.... I'm still procrastinating my 64-bit upgrade. – Diederik Jan 20 '16 at 08:31
  • Thanks a lot man, platform-tools really caused me a lot of trouble for 32 bit sys – Saurabh Udaniya Jun 29 '16 at 11:46
  • You need to downgrade also *build-tools to 23.0.1* – JaakL Aug 17 '16 at 12:18
8

OK. after some research found that reason for this is because

android-sdk-linux/platform-tools content is 32-bit ELF in 23.0.1 but 64-bit ELF in 23.1_rc1 and 23.1.0. So, several functions in android-studio (and I assume eclipse+ADT as well) fail because of the attempt to run 64-bit executables.

This issue has already been raised HERE

Also, as per the official comment given by google project member parts of the platform-tools will support 64 bit Ubuntu OS only from 23.1.0 onwards.

Platform-tools 23.1.0 OR onwards will not work on Ubuntu 32-bit OS. Developer needs to upgrade Ubuntu OS to 64-bit to make it work.

That eventually means we only have possible two workarounds now :

1. Stick with Platform-tool 23.0.1 as of now. and DO NOT UPGRADE platform-tools to 23.1.0 or above

2. Change your Ubuntu OS to 64-bit instead of 32-bit.

I hope this would help someone.

download sdk platform-tool 23.0.1 from this link

Bhavesh Patadiya
  • 25,740
  • 15
  • 81
  • 107
  • 1
    So, Android studio updater isn't sensible to detect the OS and not ask user to upgrade the platform tools if it's 32 bit OS. – Pawan Aug 22 '16 at 20:21
1

As Arnav M. said, for Ubuntu 32bit users, stick to 23.0.1 or install a 64bit Ubuntu. For more details see this:

https://stackoverflow.com/a/34239600/3032209

Community
  • 1
  • 1
Yair Kukielka
  • 10,686
  • 1
  • 38
  • 46
0

What you actually need to do is downgrade your platform-tool, which contains Android Debug Bridge, to lower version. Download the platform-tool package from following link platform-tools_r23.0.1-linux

Unzip the package and replace the platform-tool folder, in android-sdk folder, with the downloaded platform-tool folder.

After restarting android studio, it may ask you to upgrade platform-tool. Ignore it.

Prashant_M
  • 2,868
  • 1
  • 31
  • 24