Android Studio中摇篮执行错误(Ubuntu的)摇篮、错误、Android、Studio

2023-09-07 16:11:30 作者:℡壹秒旳停刻

我有一个新的安装Ubuntu和Android工作室。我已经安装了开放JDK7(由于某种原因,它后缀目录AMD64即使我运行的是英特尔CPU结束了,但我想这只是一个名字吗?),以及一些SDK文件。

I have a fresh install of Ubuntu and Android Studio. I have installed open jdk7 (for some reason it ended up in directories suffixed "amd64" even though I am running an Intel CPU, but I guess that's just a name?) as well as some SDK files.

然后我创建了一个空的项目,现在我越来越近窗口的底部显示错误。我想这是一个错误摇篮(很新的AS)

I then created an empty project and now I am getting an error displayed near the bottom of the window. I guess this is a Gradle error (am very new to AS)

Error:Execution failed for task ':app:mergeDebugResources'.
> /root/AndroidStudioProjects/HockeyGame/app/build/exploded-aar/com.android.support/appcompat-v7/19.1.0/res/drawable-xxhdpi/abc_ic_voice_search.png: Error: Cannot run program "/opt/android-studio/sdk/build-tools/android-4.4.2/aapt": error=2, No such file or directory

我想也许这是一个文件的权限问题,(因为AAPT确实似乎存在),所以我设置权限775递归。而我也开始AS使用sudo(须藤SH studio.sh)。

I was thinking maybe this was a file privilege problem (because aapt does indeed seem to exist), so I set the privileges to 775 recursively. And I am also starting AS with sudo (sudo sh studio.sh).

任何想法?我想部分AS出的Andr​​oid,因为我有得到它的杂乱在Windows下运行安装问题(也为它的乐趣),所以这是令人失望的。

Any ideas? I am partly trying AS out in Android because I was having problems getting it to run under a cluttered Windows install (and also for the fun of it), so this is disappointing.

编辑:原来64位的Ubuntu不适合运行32位可执行程序开箱

edit: It turned out 64-bit Ubuntu isn't fit to run 32-bit executables out of the box.

推荐答案

我解决它通过运行

命令和apt-get安装lib32stdc ++ 6 命令和apt-get安装lib32z1

sudo apt-get install lib32stdc++6 sudo apt-get install lib32z1

参考:https://$c$c.google.com/p/android/issues/detail?id=67155