Android的工作室找不到AAPT [英] Android studio cannot find aapt

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

问题描述

嗨我无法编译,我得到这个错误:

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

摇篮:执行失败的任务。':ElectronicComponentInventorySearch:mergeDebugResources

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

java.io.IOException异常:不能运行程序/选择/机器人工作室/ SDK /编译工具/ android- 4.2.2 / AAPT:错误= 2,没有这样的文件或目录

java.io.IOException: Cannot run program "/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

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

在我尝试任何事情我就确定chown将此完整的Andr​​oid工作室目录的一切我的帐户和设置权限为775。

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

怎么了?

推荐答案

AAPT是32位应用程序。我运行Ubuntu 64位。我需要一些额外的库。我所做的第一件事就是更新从13.04 12.10。它打破了Chrome,但这应该有助于

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.

要获得AAPT工作(这个固定我与AVD以及问题),只需要运行这两个命令:

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

从这个职位。

现在没有更多的问题。

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

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