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
Ubuntu 14.04.3 LTS
Got same error after update Android Studio and then Android SDK.
[SOLUTION : Downgrade /platform-tools folder]
- Download this arch. : https://dl-ssl.google.com/android/repository/platform-tools_r23.0.1-linux.zip
- Go to your Android SDK folder
- Remove old /platform-tools
- Insert downloaded from link above
Hope this help you.
Forgot specify that Ubuntu is 32 bit
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 :