错误:任务':lib:compileReleaseAidl'的执行失败。 >执行者Singleton没有启动

时间:2015-05-19 02:18:13

标签: java android github android-studio

当我从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

3 个答案:

答案 0 :(得分:32)

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

1-更新了所有项目依赖关系到最新版本(AppCompat,SupportV4,cardview等) 22 +

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

    <?xml version="1.0" encoding="UTF-8"?>
    <beans xmlns="http://www.springframework.org/schema/beans"
           xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
           xmlns:context="http://www.springframework.org/schema/context"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-4.0.xsd">

    <bean class="org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor"/>

<context:property-placeholder location="classpath*:application.properties"/>

    <bean id="DBProperties" class="org.springframework.beans.factory.config.PropertiesFactoryBean">
    <property name="locations">
        <value>classpath*:application.properties</value>
      </property>
    </bean>

    <bean id="sam" class="com.procus.spring.simple.simple.SampleSimpleApplication"/>
    <bean id="serv" class="com.procus.spring.simple.simple.service.HelloWorldService">
        <property name="name" value="Jano" />
    </bean>
    <bean id="calc" class="com.procus.calculator.basic.BasicCalculator">
        <constructor-arg value="1.0"/>
    </bean>


</beans>

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

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

答案 1 :(得分:7)

我在build.gradle中: classpath&#39; com.android.tools.build:gradle:1.0.0&#39;

我改为: classpath&#39; com.android.tools.build:gradle:1.2.3&#39;

它对我有用

答案 2 :(得分:0)

gradle包装器应与gradle依赖项的版本相同。

此日期的最新版本是build.gradle

classpath&#39; com.android.tools.build:gradle:1.2.3&#39;

并且,在gradle-wrapper.properties中:

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