"Could not execute build using Gradle distribution"

Anything libgdx related goes here!

"Could not execute build using Gradle distribution"

Postby exq_bytes » Sat Aug 11, 2018 9:31 pm

Haven't done any libGDX dev for a while, and have just come back to work on an existing project in Android Studio. Got all the usual AS and Java nags to upgrade, and did so. Now my libGDX project won't build. I get this error:

Could not execute build using Gradle distribution 'https://services.gradle.org/distributions/gradle-4.4-all.zip'.

So I googled this error, and tried all the various supposed fixes, like deleting gradle script dirs, etc. but nothing has worked. My manifest sdks are set to :

android:minSdkVersion="21"
android:targetSdkVersion="26"

My gradle repositories (buildscript and allprojects) are set to:

repositories {
google()
jcenter()
}

Anyone have any other pointers? I'm trying to build the desktop build of my game.
exq_bytes
 
Posts: 343
Joined: Sun Jun 10, 2012 5:58 pm

Re: "Could not execute build using Gradle distribution"

Postby exq_bytes » Sun Aug 12, 2018 8:30 am

Managed to fix it. I set gradle version to a lower version: classpath 'com.android.tools.build:gradle:3.0.0'

What is the highest version I can safely use with libGDX?
exq_bytes
 
Posts: 343
Joined: Sun Jun 10, 2012 5:58 pm

Re: "Could not execute build using Gradle distribution"

Postby evilentity » Sun Aug 12, 2018 8:52 am

4.6. If you update properly.
Looking for a freelancer? PM me!
evilentity
 
Posts: 4385
Joined: Wed Aug 24, 2011 11:37 am

Re: "Could not execute build using Gradle distribution"

Postby exq_bytes » Sun Aug 12, 2018 9:29 am

How do you update properly?
exq_bytes
 
Posts: 343
Joined: Sun Jun 10, 2012 5:58 pm

Re: "Could not execute build using Gradle distribution"

Postby evilentity » Sun Aug 12, 2018 10:36 am

You make a new project with latest setup app and see what changed. Verify that it works for you. Then change your current project.
Looking for a freelancer? PM me!
evilentity
 
Posts: 4385
Joined: Wed Aug 24, 2011 11:37 am


Return to Libgdx

Who is online

Users browsing this forum: Majestic-12 [Bot] and 1 guest