Ubuntu 12.04 LTS中Android Studio上的Gradle构建错误

时间:2014-10-24 09:38:11

标签: android ubuntu ubuntu-12.04 android-gradle

好吧,经过大约两天的谷歌搜索并尝试在这个平台上建议的大部分推荐工作,我的问题还没有解决!!

就是这样......

我最近在Ubuntu 12.04 LTS上使用Android Studio开始了Android应用程序开发。 每当我打开我的项目时,gradle构建总是会完成以下两个错误; -

Executing tasks: [clean, :app:compileDebugJava]

Configuration on demand is an incubating feature.
:app:clean
:app:preBuild
:app:preDebugBuild
:app:checkDebugManifest
:app:prepareDebugDependencies
:app:compileDebugAidl
:app:compileDebugRenderscript
:app:generateDebugBuildConfig
:app:generateDebugAssets UP-TO-DATE
:app:mergeDebugAssets
:app:generateDebugResValues UP-TO-DATE
:app:generateDebugResources
:app:mergeDebugResources
/home/vivek/AndroidStudioProjects/MyApplication3/app/src/main/res/drawable-mdpi/ic_launcher.png: Error: Cannot run program "/home/vivek/Documents/android-studio/sdk/build-tools/21.0.1/aapt": error=2, No such file or directory
:app:mergeDebugResources FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:mergeDebugResources'.
> /home/vivek/AndroidStudioProjects/MyApplication3/app/src/main/res/drawable-mdpi/ic_launcher.png: Error: Cannot run program "/home/vivek/Documents/android-studio/sdk/build-tools/21.0.1/aapt": error=2, No such file or directory

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 6.776 secs

0 个答案:

没有答案