0

i've just updated the android sdk, and now i'm getting "file not found" when trying to run adb.

what is weird, is that the file is there. there is no symlink anywhere on the path or file.

$ ltrace /home/gcb/Android/Sdk/platform-tools/adb
Can't execute `/home/gcb/Android/Sdk/platform-tools/adb': No such file or directory
failed to initialize process 30073: No such file or directory
couldn't open program '/home/gcb/Android/Sdk/platform-tools/adb': No such file or directory

$ pwd -P
/home/gcb/Android/Sdk/platform-tools
(here i check every single step with `ls -la` and confirm nothing is a symlink)

$ ls -lah adb
-rwxr-xr-x 1 gcb gcb 1.2M Sep  6 13:55 adb

$ file adb
adb: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux.so.2, for GNU/Linux 2.6.24, BuildID[sha1]=ef63f46b9ca4e04857d2cbdffad9615c8474a744, not stripped

$ ./adb 
bash: ./adb: No such file or directory

$ /home/gcb/Android/Sdk/platform-tools/adb (auto-completes fine with tab)
bash: /home/gcb/Android/Sdk/platform-tools/adb: No such file or directory
gcb
  • 13,901
  • 7
  • 67
  • 92
  • ah, ok, it might be the `ELF 32-bit` bit... debian ships with adb on /usr/bin/adb and that is proper 64bit and runs fine. so... is this file not found just a dumb kernel error for arch mismatch? – gcb Sep 06 '15 at 21:12
  • 1
    (Since this isn't just bash, but is linker-related, you may get better help if you update your tags.) – kojiro Sep 06 '15 at 21:20
  • You might try: export ANDROID_EMULATOR_FORCE_32BIT=true; and noting that 32 bit support is 'on the way out'... :) – Dale_Reagan Sep 06 '15 at 21:24
  • The architecture would indeed by my guess. – Andrzej Pronobis Sep 06 '15 at 21:24
  • @Dale_Reagan tell that to the lazy android maintainers at google :) – gcb Sep 07 '15 at 17:41

0 Answers0