Ubuntu 12.04 64位 -- eclipse新建android项目没有R文件

【遇到的问题】   Ubuntu 12.04 64位 --  eclipse新建android项目没有R文件 。

【问题描述】   clean 没有用。

                      用低版本的API 没有用

                      手动build没有用。

                      控制台报错:../android-sdk-linux/platform-tools/adb:error while loading shared libraries:
        libncurses.so.5: cannot open shared object file No such file or directory


【解决办法1】

Interesting, it looks like the assembler program needs libz on the host system.


The issue is probably that the toolchain binaries are 32-bit and you are on a 64-bit system. In this case, you would need to install the 32-bit libz libraries to make the toolchain binaries work. Try the following:

sudo apt-get install lib32z1      ”


【解决办法2】

This problem is occurring because the Android SDK is compiled for a 32-bit GNU/Linux system, and your Ubuntu system is a 64-bit GNU/Linux system. The solution should be easy (since Ubuntu fully supports running 32-bit programs on a 64-bit OS)--just install the 32-bit versions of the libraries it needs.

The simplest and easiest way to do this is to install the 32-bit versions of all the most commonly used libraries, by installing the ia32-libs Install ia32-libs package. You can do this in the Software Center or in the Terminal with:

sudo apt-get update
sudo apt-get install ia32-libs

Originally ia32-libs was provided because Ubuntu, in its default configuration, didn't support installing 32-bit Ubuntu packages on a 64-bit system. Now that this is fully supported by default, theia32-libs package just causes the same 32-bit packages to be installed on your 64-bit system that would be installed on a minimal 32-bit system. (So for anyone who is worried this might not work now that multarch is supported by default: it still works.)

网址: http://askubuntu.com/questions/147400/problems-with-eclipse-and-android-sdk

虽然还是不是特别清楚其中的问题
但是大概也就是64位 与 32位 的兼容问题吧
基本方法就是下载32位的各种包,然后就好了。。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值