I started my Android-SDK emulator (it started up normally) on my Ubuntu 14.04 (32-bit), I tried to install an application from the console into the created device:

adb install program.apk 

got an error:

 adb: 1: adb: Syntax error: ")" unexpected 

Call from the terminal without parameters:

 $ ./adb bash: ./adb: cannot execute binary file: Ошибка формата выполняемого файла 

command output:

 $ file ./adb ./adb: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.24, BuildID[sha1]=90addc5e3980f6efab749c9032cc8d7ad60dfb94, not stripped 

What could be the problem?

1 answer 1

./adb: ELF 64-bit LSB shared object, x86-64

This program is compiled for execution in a 64-bit operating system.

You wrote that you use 32-bit.


you can specify the bit depth of your operating system with the command:

 $ getconf LONG_BIT 

it will output 32 in 32-bit, 64 in 64-bit.


update

The adb program is present in the android-tools-adb package. if you install this package in the normal way, using the package manager ( apt * , etc.), then the assembly will be installed for the required bit depth and architecture.

  • Yes, it is clear. It’s not clear why exactly adb does not work with 32-bits and why it’s already installed Linux Mint 32-bit on the same workstation before reinstalling the system - does it already refuse to work? However, the emulator itself works quite well and does not complain about 32-bit :) - Xyanight
  • I updated the answer. - aleksandr barakin