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.