0

I'm trying to run my project (I use android Studio) I seem to be getting multiple issues with gradle. This showed up with after the current update:

 org.gradle.tooling.GradleConnectionException: Could not execute build using Gradle distribution 'http://services.gradle.org/distributions/gradle-1.7-bin.zip'.: Could not execute build using Gradle distribution 'http://services.gradle.org/distributions/gradle-1.7-bin.zip'. 

Does anyone have a solution for this?

1 Answer 1

4

I assume that you just updated to Android Studio 3.1.x.
You have to update the gradle version to 1.8 instead of 1.7.

Edit the following files (change the bold parts of the lines):

  • build.gradle - Line: classpath 'com.android.tools.build:gradle:0.6.+'

  • gradle-wrapper.properties - Line: distributionUrl=http\://services.gradle.org/distributions/gradle-1.8-all.zip

You may need to click the "Sync project files with gradle files" after the change.

See also: Known Issues with Android Studio

Sign up to request clarification or add additional context in comments.

2 Comments

This works with the exception of one thing: Gradle: Execution failed for task ':Abapp:processDebugResources'. > Could not call IncrementalTask.taskAction() on task ':Abapp:processDebugResources'
Maybe you find the solution here: google-android-studio.blogspot.ch/2013/10/… The procedure described there worked for me.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.