Android的工作室1.0.2不建立应用程序:mergeDebugResources错误 [英] Android studio 1.0.2 not building app:mergeDebugResources error
问题描述
我刚刚安装在Linux的Android工作室,配置了SDK,并安装在建筑物的工具,现在,当我尝试用摇篮同步或(构建应用程序)失败,并抛出这个错误:
I just installed android studio on linux , configured the SDK and installed the building tools now when I try to sync with gradle or (build the app) it fails and throws this error :
错误:未能执行任务:应用程序:mergeDebugResources。 /home/user_name/AndroidStudioProjects/project_name/app/src/main/res/drawable-hdpi/ic_launcher.png:错误:无法运行程序/home/user_name/Android/Sdk/build-tools/21.1.2/aapt :错误= 2,没有这样的文件或目录 错误:错误:无法运行程序/home/user_name/Android/Sdk/build-tools/21.1.2/aapt:错误= 2,没有这样的文件或目录 /home/user_name/AndroidStudioProjects/project_name/app/src/main/res/drawable-hdpi/ic_launcher.png
Error:Execution failed for task ':app:mergeDebugResources'. /home/user_name/AndroidStudioProjects/project_name/app/src/main/res/drawable-hdpi/ic_launcher.png: Error: Cannot run program "/home/user_name/Android/Sdk/build-tools/21.1.2/aapt": error=2, No such file or directory Error:Error: Cannot run program "/home/user_name/Android/Sdk/build-tools/21.1.2/aapt": error=2, No such file or directory /home/user_name/AndroidStudioProjects/project_name/app/src/main/res/drawable-hdpi/ic_launcher.png
我试图改变buildToolsVersion在我的摇篮文件,它给了我同样的错误为21.1.2,1,0也。
I tried to change the ' buildToolsVersion ' in my gradle file and it gave me the same error for 21.1.2 , 1 , 0 also.
推荐答案
我通过运行这些命令解决了这个问题。
I solved the problem by running those commands
sudo apt-get install lib32stdc++6
sudo apt-get install lib32z1
安装此包之前在64位
Ubuntu的不能运行AAPT
Ubuntu can't run the aapt on 64 bit before installing this packages
这篇关于Android的工作室1.0.2不建立应用程序:mergeDebugResources错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!