简体   繁体   English

更新Android Studio库后,我无法运行或构建项目

[英]After updating Android studio library I cannot run or build project

I update my android studio 2.0 to latest 2.1.1 Also I update my sdk and install all required sdk elements. 我将android studio 2.0更新到了最新的2.1.1。我也更新了sdk并安装了所有必需的sdk元素。 After that when I run my existing working project then it give me bellow issue. 之后,当我运行我现有的工作项目时,它给了我下面的问题。

Error:Execution failed for task ':lib-toolbarindicator:processReleaseResources'.

com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/home/tristate/oldSdk/android-sdk-linux/build-tools/24.0.0/aapt'' finished with non-zero exit value 2 com.android.ide.common.process.ProcessException:org.gradle.process.internal.ExecException:处理'command'/home/tristate/oldSdk/android-sdk-linux/build-tools/24.0.0/aapt''用非零退出值2结束

This error occur in messages tab. 在消息选项卡中会发生此错误。 so I cannot go further in project. 所以我不能在项目上走得更远。 Forgive me spieling mistake and grammatical mistake because I am not native in English. 原谅我令人讨厌的错误和语法错误,因为我不是英语母语。 Thank you 谢谢

Try to Clean up Your Project. 尝试清理您的项目。 I often get Error but With Just One Clean shot, BUILD SUCCESSFUL 我经常会出错,但是只要完成一次清洁就可以成功

Please change your build.gradel file then sync android because this type of error comes due to unnecessary complie library in build.gradel. 请更改您的build.gradel文件,然后同步android,因为此类错误是由于build.gradel中不必要的complie库引起的。

defaultConfig { defaultConfig {
// Enabling multidex support. //启用multidex支持。 multiDexEnabled true } multiDexEnabled true}

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM