java 错误:任务 ':lib:compileReleaseAidl' 的执行失败。> Executor Singleton 未启动

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/30315693/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-11-02 16:53:20  来源:igfitidea点击:

Error:Execution failed for task ':lib:compileReleaseAidl'. > Executor Singleton not started

javaandroidgithubandroid-studio

提问by Sanpark

When I import one project into my Android Studio from Github, this happens. How to fix it?

当我从 Github 将一个项目导入我的 Android Studio 时,就会发生这种情况。如何解决?

Information:Gradle tasks [:app:generateDebugSources, :app:generateDebugTestSources, :lib:generateDebugSources, :lib:generateDebugTestSources]
:app:preBuild
:app:preDebugBuild
:app:checkDebugManifest
:app:preReleaseBuild
:lib:compileLint
:lib:copyReleaseLint UP-TO-DATE
:lib:preBuild
:lib:preReleaseBuild
:lib:checkReleaseManifest
:lib:preDebugBuild
:lib:preDebugTestBuild
:lib:prepareComAndroidSupportAppcompatV72102Library UP-TO-DATE
:lib:prepareComAndroidSupportCardviewV72102Library UP-TO-DATE
:lib:prepareComAndroidSupportSupportV42102Library UP-TO-DATE
:lib:prepareReleaseDependencies
:lib:compileReleaseAidl FAILED
Error:Execution failed for task ':lib:compileReleaseAidl'.
> Executor Singleton not started

回答by MohammadReza

I was facing the same issue, here is what I did:

我遇到了同样的问题,这是我所做的:

1- Updated all the project dependencies to latest version (AppCompat,SupportV4,cardview, etc) which are 22+

1- 将所有项目依赖更新到22+ 的最新版本(AppCompat、SupportV4、cardview 等)

2- Updated root projects build.gradlefile to use latest gradle version :

2- 更新根项目build.gradle文件以使用最新的 gradle 版本:

classpath 'com.android.tools.build:gradle:1.2.3'

3- In gradle-wrapper.propertiesfile I used the latest gradle version which is 2.4

3- 在gradle-wrapper.properties文件中,我使用了最新的 gradle 版本2.4

distributionUrl=https\://services.gradle.org/distributions/gradle-2.4-all.zip

回答by bloub

I had in build.gradle : classpath 'com.android.tools.build:gradle:1.0.0'

我在 build.gradle 中:classpath 'com.android.tools.build:gradle:1.0.0'

I changed to : classpath 'com.android.tools.build:gradle:1.2.3'

我改为:classpath 'com.android.tools.build:gradle:1.2.3'

it works for me

这个对我有用

回答by Sterling Diaz

The gradle wrapper should be in the same version as the gradle dependency.

gradle 包装器应与 gradle 依赖项在同一版本中。

The latest to this date is, in build.gradle

最新的日期是在 build.gradle 中

classpath 'com.android.tools.build:gradle:1.2.3'

类路径 'com.android.tools.build:gradle:1.2.3'

And, in gradle-wrapper.properties:

并且,在 gradle-wrapper.properties 中:

distributionUrl=https://services.gradle.org/distributions/gradle-2.7-rc-1-all.zip

distributionUrl=https://services.gradle.org/distributions/gradle-2.7-rc-1-all.zip