Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

assembleDebug not working with Gradle2.4 in Android Studio

I recently updated gradle-wrapper.properties file to use gradle-2.4.
Here is my new updated gradle-wrapper.properties file:

#Sun Dec 21 21:28:27 GMT+05:30 2014
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-2.4-all.zip

After this update I ran the clean command so that it used 2.4 and 2.2.1 (the older version).

Now, if I use ./gradlew assembleDebug command in Android studio, it throws the following error:

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':ActiveAndroid:compileDebugTestAidl'.
> Executor Singleton not started

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

But if I run the same command on command line, it works.
Any idea what could be wrong?

like image 468
mudit Avatar asked May 12 '15 19:05

mudit


1 Answers

I just ran into this problem. What I did to solve it

  • kill all android studio via task manager (closing all instances should be enough)
  • Manually deleted
  • .gradle, .idea, build, YOUR_PROJECT_NAME.iml from the ROOT DIR
  • inside the app folder deleted app.iml, build
  • Reimport my project and let gradle rebuild it's settings and download the new version of gradle

I am pretty certain some of the above steps are not needed, but I did them just for the good measure.

Also I see really no gain by using 2.4. They promissed 20-40% faster builds... in your dreams, it didn't change anything for me :/

like image 90
Bojan Kseneman Avatar answered Oct 04 '22 02:10

Bojan Kseneman