12

ADB in Android Studio (Ubuntu) ERROR : Unable to detect adb version, adb output: /home/hamid/Android/Sdk/platform-tools/adb: 1: /home/hamid/Android/Sdk/platform-tools/adb: Syntax error: ")" unexpected

2 Answers2

29

Ubuntu 14.04.3 LTS

Got same error after update Android Studio and then Android SDK.

[SOLUTION : Downgrade /platform-tools folder]

  1. Download this arch. : https://dl-ssl.google.com/android/repository/platform-tools_r23.0.1-linux.zip
  2. Go to your Android SDK folder
  3. Remove old /platform-tools
  4. Insert downloaded from link above

Hope this help you.

[UPDATED]

Forgot specify that Ubuntu is 32 bit

  • Thanks buddy, it gone like flash! Thank you so much ..!! I solved my problem – Hamid Mustafa Dec 30 '15 at 04:36
  • This solved my problem too, on Linux Mint 17.1 32-bit – cctan Dec 31 '15 at 17:05
  • Thanks Elia, this worked on my 32bit Ubuntu 15.10, however when Android Studio updated the component it reverted to the 64bit version so no more updating of this component for me!. – Ian S Williams Feb 27 '16 at 04:08
  • 2
    Android Studio wanted an update which put the same bug back in. To fix, instead of replacing entire /platform-tools, instead, I just extracted adb by itself and that worked! – jim Sep 09 '16 at 19:49
  • Excellent advice. Also solves the problem on Ubuntu 16.04 on a 32-bit machine. – SANBI samples Nov 20 '16 at 11:06
  • Thank you , it solved that problem ( Ubuntu 16.04 32bit ). I am programming more than 30 years in various languages and IDEs , I have never seen such a mess as Android Studio – konstantinosX Jan 07 '18 at 07:37
2

This happened only for 32 bits linux platform.

The Android SDK Platform-tools Rev. 23.1.0 doesn't support 32 bits.

Some explanations are given (and asked) here :

https://code.google.com/p/android/issues/detail?can=2&start=0&num=100&q=ubuntu&colspec=ID%20Status%20Priority%20Owner%20Summary%20Stars%20Reporter%20Opened&groupby=&sort=-id&id=196866

Greatings,

Eric

Eric
  • 21