Android adb not found

前端 未结 20 1568
半阙折子戏
半阙折子戏 2020-11-28 01:18

When I run my android app from eclipse, I get this error.

Unexpected exception \'Cannot run program \"/home/antz/Development/adt-bundle-linux/sdk/platform-t         


        
相关标签:
20条回答
  • 2020-11-28 01:46

    On Linux, Android SDK platform-tools package containing adb used to be 32bit. It worked fine on 32bit systems. But on 64bit systems you need to manually install the IA32 library.

    For Debian based distributions try this:

    sudo apt-get install libc6-i386 lib32stdc++6 lib32gcc1 lib32ncurses5
    

    But since v24.0 platform-tools contains only 64bit binaries - so 32bit libraries no longer required.

    0 讨论(0)
  • 2020-11-28 01:46

    The correct current combo for Arch Linux is as follows: :

    [This part is unchanged] Uncomment the following section in /etc/pacman.conf:

    ...
    [multilib]
    Include = /etc/pacman.d/mirrorlist
    ...
    

    Then:

    sudo pacman -Syu && sudo pacman -S multilib/lib32-libstdc++5 multilib/lib32-zlib
    

    The difference with the other answer is that package names include the multilib/ part now.

    (from Arch Wiki: Multilib#Enabling, Android#Troubleshooting)

    0 讨论(0)
  • 2020-11-28 01:49

    in ubuntu 64 bits [12.04]-[14.10] and Elementary OS 64 bits

    sudo dpkg --add-architecture i386
    sudo apt-get update
    sudo apt-get install libncurses5:i386 libstdc++6:i386 zlib1g:i386
    
    0 讨论(0)
  • 2020-11-28 01:50

    I am running Ubuntu 12.04 LTS and this command is the only thing that worked for me:

    sudo apt-get install lib32z1 lib32z1-dev
    

    Once I ran that from a command line, I was able to get the R.java file to generate (the tell-tale sign that something in your Android SDK tools installation is not quite right) by doing a Project > Clean in Eclipse.

    0 讨论(0)
  • 2020-11-28 01:50

    if you're having this problem in 64bits, try this (worked for me):

    $ apt-get install lib32gcc1 libc6-i386 lib32z1 lib32stdc++6
    $ apt-get install lib32ncurses5 lib32gomp1 lib32z1-dev lib32bz2-dev
    $ apt-get install g++-multilib
    

    http://sixarm.com/about/ubuntu-apt-get-install-ia32-for-32-bit-on-64-bit.html

    0 讨论(0)
  • 2020-11-28 01:51

    This works great in Ubuntu 13.04 64bit version

    You can no longer install ia32-libs, so you must the individual 32 bit libraries needed by adb

    sudo apt-get install libc6-i386 lib32stdc++6 lib32gcc1 lib32ncurses5
    
    0 讨论(0)
提交回复
热议问题