Android studio 找不到 aapt [英] Android studio cannot find aapt

查看:66
本文介绍了Android studio 找不到 aapt的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在编译时遇到问题,出现此错误:

Gradle:任务:ElectronicComponentInventorySearch:mergeDebugResources"的执行失败.

<块引用>

java.io.IOException: 无法运行程序 "/opt/android-studio/sdk/build-tools/android-4.2.2/aapt": error=2, No such file or directory

当我使用定位时:/opt/android-studio/sdk/build-tools/android-4.2.2/aapt

在我尝试任何操作之前,我确保将整个 android-studio 目录添加到我的帐户中,并将所有内容的权限设置为 775.

怎么了?

解决方案

Aapt 是一个 32 位应用程序.我正在运行 ubuntu 64 位.我需要一些额外的库.我做的第一件事是从 12.10 更新到 13.04.它破坏了 chrome,但 这应该会有所帮助.>

要让 aapt 工作(这也解决了我的 avd 问题),只需运行以下两个命令:

sudo apt-get install lib32stdc++6须藤 apt-get 安装 lib32z1

来自这个帖子.

现在没有问题了.

Hi I am having trouble compiling, I get this error:

Gradle: Execution failed for task ':ElectronicComponentInventorySearch:mergeDebugResources'.

java.io.IOException: Cannot run program "/opt/android-studio/sdk/build-tools/android- 4.2.2/aapt": error=2, No such file or directory

When I use locate: /opt/android-studio/sdk/build-tools/android-4.2.2/aapt

Before I tried anything I made sure to chown the whole android-studio directory to my account and set permissions for everything to 775.

Whats up?

解决方案

Aapt is a 32bit application. I am running ubuntu 64bit. I needed some additional libraries. First thing I did was update to 13.04 from 12.10. It broke chrome but this should help.

To get aapt working (this fixed my issues with the avd as well) just run these two commands:

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

From this post.

Now no more problems.

这篇关于Android studio 找不到 aapt的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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