安卓/ Eclipse安装在Ubuntu 11.04 - AAPT和亚行工作不正常 [英] Android/Eclipse Installation on Ubuntu 11.04 - aapt and adb not working properly

查看:179
本文介绍了安卓/ Eclipse安装在Ubuntu 11.04 - AAPT和亚行工作不正常的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是一个Linux的n00b试图设置我的开发环境Eclipse中。我已经安装了Eclipse和Android SDK,但我得到了一些错误,当我启动Eclipse或当我尝试运行./aapt或./adb。

 贾森@ Ubuntu的:〜在/ usr / Android的SDK-linux_x86 /平台工具$ ./aapt
./aapt:错误而载入共享库:libz.so.1:无法打开共享对象文件:没有这样的文件或目录

贾森@ Ubuntu的:〜在/ usr / Android的SDK-linux_x86 /平台工具$ ./adb
./adb:错误而载入共享库:libncurses.so.5:错误的ELF类:ELFCLASS64
 

这是ELF类的错误让我觉得我安装了错误版本的软件,但我不记得被问的x86和x86-64之间做出选择。

 贾森@ Ubuntu的:〜在/ usr / Android的SDK-linux_x86 $回声$ MACHTYPE
x86_64的-PC-Linux的GNU
 

解决方案

你确定你遵循这个引导完全?你有IA32-库安装? 试试这个:

命令和apt-get安装IA32-库

I am a Linux n00b trying to setup my development environment in Eclipse. I have Eclipse and the Android SDK installed, but I am getting some errors when I start Eclipse or when I try to run ./aapt or ./adb.

jason@ubuntu:~/usr/android-sdk-linux_x86/platform-tools$ ./aapt
./aapt: error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or directory

jason@ubuntu:~/usr/android-sdk-linux_x86/platform-tools$ ./adb
./adb: error while loading shared libraries: libncurses.so.5: wrong ELF class: ELFCLASS64

That ELF class error makes me think I installed a wrong version of the software but I do not recall being asked to choose between x86 and x86-64.

jason@ubuntu:~/usr/android-sdk-linux_x86$ echo $MACHTYPE
x86_64-pc-linux-gnu

解决方案

Are you sure you followed this guide completely? Do you have ia32-libs installed? Try this:

sudo apt-get install ia32-libs

这篇关于安卓/ Eclipse安装在Ubuntu 11.04 - AAPT和亚行工作不正常的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆