Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Studio not communicating with adb GLIBC .... not found error

Android studio was communicating with adb normally. Right after updating platform-tools to version 23, android studio stopped communicating with adb.

It displays the message:

Unable to create Debug Bridge: Unable to start adb server: Unable to detect adb version, adb output: /data/programs/android-sdk/platform-tools/adb: /lib64/libc.so.6: version 'GLIBC_2.14' not found (required by /data/programs/android-sdk/platform-tools/adb) /data/programs/android-sdk/platform-tools/adb: /lib64/libc.so.6: version 'GLIBC_2.15' not found (required by /data/programs/android-sdk/platform-tools/adb)

I have Centos 6.5 (final) Kernel Linux 2.6.32.431.el6.x86_64 Gnome 2.28.2

like image 805
Hesham Fas Avatar asked Dec 15 '15 21:12

Hesham Fas


2 Answers

I think the only solution to this problem is to upgrade the distribution because one can't simply upgrade GLIBC on the dist

A temporary workaround is to rollback to a previous version of the platform tools.

The version introduced this is platform-tools_r23.1.0. The last working version is platform-tools_r23.0.1.

You can download the last working version from http://dl-ssl.google.com/android/repository/platform-tools_r23.0.1-linux.zip

Just extract it and replace the platform-tools folder inside your sdk folder.

like image 169
Ahmed Hegazy Avatar answered Nov 13 '22 08:11

Ahmed Hegazy


I found a temporary solution: I have a copy of the previous version of platform-tools folder. I replaced the new folder with the older one. back to normal.

But I still wish someone finds a solution to make platform-tools v23 works on Centos machine.

like image 31
Hesham Fas Avatar answered Nov 13 '22 07:11

Hesham Fas