Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ADB Connection Error: Unable to create Debug Bridge: Unable to start adb server: Unable to detect adb version, adb output [duplicate]

I did updated my studio to 1.5.1 in Linux Mint and just launched my studio. Its giving me a dialog (while ADB Initializing) saying:

  • Unable to create Debug Bridge:
  • Unable to start adb server: Unable to detect adb version, adb output:
  • /home/ajay/Developement/Sdk/platform-tools/adb: 1: /home/ajay/Developement/Sdk/platform-tools/adb: Syntax error: ")" unexpected

Please provide a fix. Any help would be appreciated.

like image 640
ajay Avatar asked Dec 12 '15 04:12

ajay


People also ask

How do I fix an adb connection error?

In tools menu,Android-> untick enable adb Integration and Then OPEN widows task manager n manually end process adb.exe This also solved my issue as der were multiple adb.exe running. Show activity on this post. Restart the computer. Now, disconnect the device, connect it, Make sure USB debugging Option is enabled.

How do you fix Cannot reach adb server attempting to reconnect?

This could be some configuration problem with you android studio try to delete your . android file in your users folder and restart android studio(proceed with caution). first try with android emulator, make sure to keep your android sdk up to date. give some to android studio in first initialization.

How do I start an adb server?

Enable adb debugging on your device To make it visible, go to Settings > About phone and tap Build number seven times. Return to the previous screen to find Developer options at the bottom. On some devices, the Developer options screen might be located or named differently. You can now connect your device with USB.

Why does it say unable to locate adb?

As it turns out, the error message appears when Android Studio is not able to locate the ADB.exe file that is located in the platform-tools folder. This can happen due to several reasons including when your antivirus software removes the adb.exe file due to a false alarm.


2 Answers

Old Answer: I'm having the same problem (with ADB in Linux Mint 17, 32bit Quiana). I made sure that the file ADB in platform-tools directory has executable permission but it appears that will not run at all (even if I try stopping Android Studio and running ADB on its own). I tired uninstalling and re-installing the Android SDK Platform Tools (v 23.1) but that didn't help. Is there a way to revert back to an earlier version of Platform Tools?

Improved Answer: If you're using a 32-bit Linux system to run Android Studio and have had the misfortune to have updated to platform-tools 23.1.0 you need to revert back to platform-tools 23.0.1.

Here's how I did that:

Download the 23.0.1 files with this link: https://dl-ssl.google.com/android/repository/platform-tools_r23.0.1-linux.zip

Move the downloaded zip file to the directory where your Android SDK is installed (something like ~/Android/Sdk).

Rename the existing directory containing the 64-bit files ( ~/Android/Sdk/platform-tools to ~/Android/Sdk/platform-tools-64-bit ). Note: you could just delete these files but I saved them. They don't take up much space.

From the ~/Android/Sdk directory unzip the downloaded zip file. That should have created a new directory ~/Android/Sdk/platform-tools containing the platform-tools 23.0.1 files and sub-directories that you need for your 32-bit system. ADB should now work just like it did before this "update" broke it. (Bad Google, Bad, Bad)

Reference: https://code.google.com/p/android/issues/detail?id=196866

like image 187
RealDogBoy Avatar answered Oct 03 '22 17:10

RealDogBoy


Replacing old platform tools fixed my problem too. Thanks "RealDogBoy".

Download the 23.0.1 files with this link: https://dl-ssl.google.com/android/repository/platform-tools_r23.0.1-linux.zip

  1. I renamed the old "platform-tools" folder to platform-tools_23.1
  2. unzipped the above zip file into the sdk folder.
  3. restarted the Android Studio.

Started working fine.

like image 23
Piyush Avatar answered Oct 03 '22 18:10

Piyush