`
chanshui
  • 浏览: 82710 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论

Failed to get the adb version: Cannot run program "/home/johan/devtools/android/

阅读更多


← Pimp-my-Pumpkin!

Google Collections →
Getting Android SDK working on Ubuntu 64

October 21st, 2009 by Johan Haleby — Android
Johan Haleby

Today I was trying to setup the Android SDK (version 1.6_r1) on the 64 bit version of Ubuntu 9.04 (Jaunty Jackalope). After having installed the ADT Eclipse plugin and pointed out the Android SDK directory in the settings I immediately ran into the following error:

Failed to get the adb version: Cannot run program "/home/johan/devtools/android/android-sdk-linux_x86-1.6_r1/tools/adb": java.io.IOException: error=2, No such file or directory

I opened the terminal and tried to manually run an Android executable but even here it said that the file couldn't be found! The problem seemed to be that the Android executables requires 32 bit libraries that are not available in Ubuntu 64 by default. To solve this I downloaded the execellent getlibs application which is a utility for automatically resolving dependencies for 32-bit programs on a 64 bit system. So I went into platforms/android-1.6/tools in the Android SDK installation folder and executed:


getlibs aapt


which installed and upgraded the following libraries:


The following NEW packages will be installed:
  ia32-libs lib32asound2 lib32gcc1 lib32ncurses5 lib32stdc++6 lib32z1
  libc6-i386
The following packages will be upgraded:
  libc6 libc6-dev


After this was done I went back into Eclipse, did a project clean and refresh and after that I was able to start the Android emulator successfully. Hopefully this may help someone who's in the same situation.
分享到:
评论
1 楼 zhq56030207 2011-02-16  
好像还是不行!!

相关推荐

    ADB源码(android / platform / system / core)

    adb源码官网:https://android.googlesource.com/platform/system/core/可在以上链接获取adb源码集成到项目中。若下载失败可以下载上面的附件。

    安卓设备读取USB外设信息

    带OTG功能安卓设备读取USB外设信息 可以通过AS调试读出 , 过滤关键字 "Li_Debug" , 一次显示使用USB外设 格式举例 厂商/VendorId: 0x10C4 产品/ProductId: 0xEA60 设备/DeviceId: 0x7D2 接口数/InterfaceCount: 1 ...

    Android代码-gradle-screen-record

    CSDN More information of gradle-screen-...adb: We use it to get screen-record files with .mp4 format. ffmpeg: We use it to convert the format of these files, from .mp4 to .gif. More infomation abou

    adb驱动和下载驱动

    adb驱动和下载驱动,高通和mtk均有,请下载使用,赚取积分

    ApkIDE3.3.0.0作者原版,解决常见apk打包安装问题.rar

    adb: failed to install SystemActivities.apk: Failure [INSTALL_FAILED_OLDER_SDK: Failed parse during installPackageLI: /data/app/vmdl1716187195.tmp/base.apk (at Binary XML file line #0): Requires newer...

    rtl8188eu_r16m_20161208_服务器再次验证最终完成版本_20170531_1559没有外层目录.7z

    全志R16平台的android6.0.1系统下的RTL8188EU的配置V1.0 2017/5/31 10:30 1、R:\wyb\rtl8188eu_r16m_20161208\android\device\softwinner\astar-evb30\overlay\frameworks\base\core\res\res\values\config.xml ...

    Android8.1 替换本地adb

    ADB 安装配置 Ubuntu: 1、 获取 adb 下载 sdk:http://developer.android.com/sdk/index.html 选择 linux 64 位版本 adt-bundle-linux-x86_64-20130729/sdk/platform-tools/adb 2、 安装 adb $ mkdir -p ~/bin $cp ...

    kbejjjbd(www.greenxf.com).rar

    Unable to detect adb version, exit value: 0xc0000135. ADB depends on the Windows Universal C Runtime, which is usually installed by default via Windows Update. You may need to manually fetch and ...

    win10 64X adb.exe

    解决adb server version (31) doesn’t match this client (36); killing… * daemon started successfully * error: no devices/emulators found adb.exe下载 下载后替换adb所在目录

    Android代码-adbWireless

    adbWireless enable ADB wireless connection to connect to the phone as if connected by USB. used a method already known to enable the wireless connection through: 03-17-2010: http://goo.gl/iK77 04-10-...

    bmi160调通bmi160的ACC+GYR_20160907.7z

    could not get driver version for /dev/input/js1, Invalid argument add device 2: /dev/input/event4 name: "bma250" events: ABS (0003): 0000 : value 0, min -19613100, max 19613100, fuzz 0, flat 0, ...

    android adb shell 命令大全

    android adb shell 命令大全 1. 显示系统中全部Android平台: android list targets 2. 显示系统中全部AVD(模拟器): android list avd 3. 创建AVD(模拟器): android create avd --name 名称 --...

    softap_ap6212a0_tinav2.1_验证通过_旧版本的系统_20170915_1223没有外层目录.7z

    rootroot@cm-System-Product-Name:/home/wwt$ tar zxvf tinaV2.1_wyb_20170302_patch_leo_20161102.tar.gz rootroot@cm-System-Product-Name:/home/wwt$ mv tinaV2.1 softap_ap6212a0_tinav2.1 rootroot@cm-System...

    Android-android-dev-bookmarks.zip

    Android-android-dev-bookmarks.zip,android开发书签(adb)-android用于cn dev now:https://rocko.xyz/categories/android-dev-bookmarks/;android-dev-bookmarks/;android:https://tinyletter.com/rocko:,安卓...

    adb命令执行工具Android

    很方便的android代码中执行adb命令的工具

    Android Debug Bridge version 1.0.41/adb 1.0.41/最新版本

    adb shell am broadcast -a ADB_INPUT_TEXT --es msg '中文输 入' 连接好安卓手机,本地运行cmd :adb devices 可以看到安卓机使用的adb版本 解决Appium 在cmd环境下的中文问题,2020.06.01更新版本

    android 网络 抓包工具和方法

    adb push d:\tcpdump /data/local/tcpdump adb shell chmod 6755 /data/local/tcpdump adb shell /data/local/tcpdump/tcpdump -p -vv -s 0 -w /sdcard/capture.pcap adb pull /sdcard/capture.pcap . TCPdump...

    lunch_cb5801_r58_20160907.7z

    wenyuanbo@cm-System-Product-Name:/home/wwt/lunch_cb5801_r58/android/device/softwinner/octopus-cb5801$ grep perf . -R 匹配到二进制文件 ./.git/index grep: ./.git/svn: 没有那个文件或目录 ./.git/config: ...

    lunch_r58_20160906.7z

    wenyuanbo@cm-System-Product-Name:/home/wwt/lunch_cb5801_r58/android/device/softwinner/octopus-cb5801$ grep perf . -R 匹配到二进制文件 ./.git/index grep: ./.git/svn: 没有那个文件或目录 ./.git/config: ...

    无 adb disable-verity 命令的adb应用程序

    此adb中无adb disable-verity命令,如果在cmd中输入以上命令会报 /system/bin/sh: disable-verity: not found 的错误。具体可看本人的文章 ”/system/bin/sh: disable-verity: not found 的解决方案“ 【使用方式】...

Global site tag (gtag.js) - Google Analytics