Android Studio Could not execute build using Gradl

2019-08-03 17:24发布

问题:

I'm developing a libgdx game. The code is compiling successfully, but after hitting run, the build failed, and showing error like this Could not execute build using Gradle distribution 'https://services.gradle.org/distributions/gradle-4.4-all.zip'. Have anyone got solution for this?

回答1:

Hopefully you've created your LibGDX project using gdx-setup.jar of latest build.

If yes try to update your gradle version to 4.6

Check and update the gradle/wrapper/gradle-wrapper.properties file in your project :

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

Refresh/sync your gradle project.