Android adb not found

前端 未结 20 1571
半阙折子戏
半阙折子戏 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:56

    Run these commands below. Its worked for me

    sudo apt-get dist-upgrade
    sudo apt-get install ia32-libs
    
    0 讨论(0)
  • 2020-11-28 01:56

    sudo apt install adb

    adb not installed in your pc

    Try this.

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

    You have to install the 32 bit glibc:

    in Fedore 64 bit machine

    # yum install glibc.i686
    

    This removes the misleading 'no such file or directory' message when trying to execute a 32 bit binary. With that the 64 bit Fedora system is capable of executing 64 bit binaries.

    This also removes the misleading 'not a dynamic executable' message of ldd when calling ldd on a 32 bit dynamic executable.

    Now you have to install missing 32 bit libraries the binaries under adt-bundle-linux/sdk/platform-tools are linked against:

    # yum install zlib.i686 libstdc++.i686 ncurses-libs.i686 libgcc.i686
    

    Thats it.

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

    Sometimes it's just a matter giving sdk files the necessary permissions.

    sudo chmod -R +x /path/to/android-sdk-linux
    

    Restart Android Studio and see if that fix it.

    Permission issues typically occur when you copy/move sdk files from a NTFS partition or copying from another computer.

    0 讨论(0)
  • 2020-11-28 02:05

    I did it in my Linux Mint 12:

       chmod +x PATH/adb
    
    0 讨论(0)
  • 2020-11-28 02:05

    From the Ubuntu Multiarch HOWTO:

    Some users using the Android SDK might encounter problems when trying to run build-tools or platform-tools on amd64 bit platform. As replacement for ia32-libs, users should be fine just installing the following libraries:

    dpkg --add-architecture i386
    aptitude update
    aptitude install libstdc++6:i386 libgcc1:i386 zlib1g:i386 libncurses5:i386
    
    0 讨论(0)
提交回复
热议问题