Since Ubuntu 13.10 no longer has ia32-libs I cannot get my android development environment running on a clean install of 13.10.
由于Ubuntu 13.10不再具有ia32-libs,我无法让我的Android开发环境在13.10的干净安装上运行。
The error is ~/android-studio/sdk/build-tools/android-4.2.2/aapt": error=2, No such file or directory
错误是〜/ android-studio / sdk / build-tools / android-4.2.2 / aapt“:错误= 2,没有这样的文件或目录
This file does exist and is executable but it is a 32bit executable.
此文件确实存在且可执行但它是32位可执行文件。
In previous installs I just installed ia32-libs to fix this but this solution no longer works for Ubuntu 13.10.
在以前的安装中,我刚刚安装了ia32-libs来解决这个问题,但是这个解决方案不再适用于Ubuntu 13.10。
I have tried solutions proposed by askubuntu questions eg. this one https://askubuntu.com/questions/107230/what-happened-to-the-ia32-libs-package
我尝试过askubuntu问题提出的解决方案,例如。这一个https://askubuntu.com/questions/107230/what-happened-to-the-ia32-libs-package
but it isn't working for me. From that askubuntu.com answer I see I should install separate packages with
但它不适合我。从那个askubuntu.com回答我看到我应该安装单独的包
sudo apt-get install package:i386
but I don't know which packages to install to make the android tools work again.
但我不知道要安装哪些软件包以使android工具再次运行。
Has anyone else solved this problem and or does anyone have a list of packages which need to be installed for the android tools?
有没有其他人解决这个问题,或者有没有人有一个需要为Android工具安装的软件包列表?
5 个解决方案
#1
64
While dpkg --add-architecture i386
command is not needed in the current version of Ubuntu (13.10), it is required in the current Debian versions (7.x) and it will be required in the future Ubuntu versions as well. So I am going to leave it in. Just ignore it for Ubuntu 13.10.
虽然在当前版本的Ubuntu(13.10)中不需要dpkg --add-architecture i386命令,但在当前的Debian版本(7.x)中需要它,并且在将来的Ubuntu版本中也需要它。所以我要把它留进去。只需忽略Ubuntu 13.10。
sudo dpkg --add-architecture i386
sudo apt-get -qqy update
sudo apt-get -qqy install libncurses5:i386 libstdc++6:i386 zlib1g:i386
Update: aapt
indeed requires zlib
so I added it to the list. But you should not be needing any lib32
packages.
更新:aapt确实需要zlib所以我将它添加到列表中。但是你不应该需要任何lib32包。
#2
83
Another way(without adding i386 architecture)...
另一种方式(不添加i386架构)......
sudo apt-get install libc6-i386 lib32stdc++6 lib32gcc1 lib32ncurses5
sudo apt-get install lib32z1
Ref: Fix Android adb on Ubuntu 13.10 64bit
参考:在Ubuntu 13.10 64bit上修复Android adb
#3
3
It's just a matter giving sdk files the necessary permissions.
这只是给sdk文件提供必要权限的问题。
sudo chmod -R +x /path/to/android-sdk-linux
Restart Android Studio and see if that fix it.
重启Android Studio,看看是否能解决问题。
Permission issues typically occur when you copy/move sdk files from a NTFS partition or copying from another computer.
从NTFS分区复制/移动sdk文件或从另一台计算机复制时,通常会发生权限问题。
#4
2
On Ubuntu 14.04 LTS x64 and buildToolsVersion 21/22 it was enough to execute the following:
在Ubuntu 14.04 LTS x64和buildToolsVersion 21/22上执行以下操作就足够了:
sudo apt-get install libc6:i386 libstdc++6:i386
sudo apt-get install zlib1g:i386
The error I was getting:
我得到的错误:
Execution failed for task ':core:processReleaseResources'.
> A problem occurred starting process 'command '/home/user/androidSDK/android-sdk/build-tools/21.1.2/aapt''
#5
1
install 13.04 ia32-libs (raring ringtail)
安装13.04 ia32-libs(raring ringtail)
instructions: http://bisonf.wordpress.com/2013/10/19/ubuntu-13-10-how-to-properly-install-ia32-libs-and-ia32-libs-multiarch/
说明:http://bisonf.wordpress.com/2013/10/19/ubuntu-13-10-how-to-properly-install-ia32-libs-and-ia32-libs-multiarch/
#1
64
While dpkg --add-architecture i386
command is not needed in the current version of Ubuntu (13.10), it is required in the current Debian versions (7.x) and it will be required in the future Ubuntu versions as well. So I am going to leave it in. Just ignore it for Ubuntu 13.10.
虽然在当前版本的Ubuntu(13.10)中不需要dpkg --add-architecture i386命令,但在当前的Debian版本(7.x)中需要它,并且在将来的Ubuntu版本中也需要它。所以我要把它留进去。只需忽略Ubuntu 13.10。
sudo dpkg --add-architecture i386
sudo apt-get -qqy update
sudo apt-get -qqy install libncurses5:i386 libstdc++6:i386 zlib1g:i386
Update: aapt
indeed requires zlib
so I added it to the list. But you should not be needing any lib32
packages.
更新:aapt确实需要zlib所以我将它添加到列表中。但是你不应该需要任何lib32包。
#2
83
Another way(without adding i386 architecture)...
另一种方式(不添加i386架构)......
sudo apt-get install libc6-i386 lib32stdc++6 lib32gcc1 lib32ncurses5
sudo apt-get install lib32z1
Ref: Fix Android adb on Ubuntu 13.10 64bit
参考:在Ubuntu 13.10 64bit上修复Android adb
#3
3
It's just a matter giving sdk files the necessary permissions.
这只是给sdk文件提供必要权限的问题。
sudo chmod -R +x /path/to/android-sdk-linux
Restart Android Studio and see if that fix it.
重启Android Studio,看看是否能解决问题。
Permission issues typically occur when you copy/move sdk files from a NTFS partition or copying from another computer.
从NTFS分区复制/移动sdk文件或从另一台计算机复制时,通常会发生权限问题。
#4
2
On Ubuntu 14.04 LTS x64 and buildToolsVersion 21/22 it was enough to execute the following:
在Ubuntu 14.04 LTS x64和buildToolsVersion 21/22上执行以下操作就足够了:
sudo apt-get install libc6:i386 libstdc++6:i386
sudo apt-get install zlib1g:i386
The error I was getting:
我得到的错误:
Execution failed for task ':core:processReleaseResources'.
> A problem occurred starting process 'command '/home/user/androidSDK/android-sdk/build-tools/21.1.2/aapt''
#5
1
install 13.04 ia32-libs (raring ringtail)
安装13.04 ia32-libs(raring ringtail)
instructions: http://bisonf.wordpress.com/2013/10/19/ubuntu-13-10-how-to-properly-install-ia32-libs-and-ia32-libs-multiarch/
说明:http://bisonf.wordpress.com/2013/10/19/ubuntu-13-10-how-to-properly-install-ia32-libs-and-ia32-libs-multiarch/