Manually installing gradle for custom android export?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By psear

I’m really unfamiliar with the process of the custom building, and am trying to implement some in app purchases with GodotGooglePlayBilling, the issue is, due to my local network settings, Godot can’t download anything (this happens with export templates, so I just downloaded them manually and installed from file). For the custom build, it gets stuck on downloading gradle, and then fails (obviously). I’ve downloaded the zip that it is trying to install, where do I unpack it?

TLDR: How do I manually install gradle for a custom export, where does the zip file go?

I don’t think Godot is able to use a local Gradle installation yet. It’ll only attempt to call gradlew, not gradle.

Please open a proposal if you want this feature to be implemented.

Calinou | 2020-07-18 09:29

I can do so, but obviously these files are unpacked somewhere, and if I just know where to put what, it should work. Figuring out why Godot doesn’t like my network settings might also be a solution.

psear | 2020-07-18 10:08

Did you ever found an answer for your question? The download with Godot takes ages if it even downloads and is not crashing while doing so.

Silvallis | 2021-07-20 20:56

:bust_in_silhouette: Reply From: jumbotron

As mentioned by @Calinou, Godot attempts to call only gradlew and not gradle.

On windows I did below:

  1. Rename gradlew.bat to gradlew-old.bat (This is an optional step. You may choose to directly overwrite gradlew.bat in the next step)

  2. Create a new gradlew.bat (or edit the existing one) and put the below code:

echo gradlew called with arguments %*

@echo off
set CMD_LINE_ARGS=%*
gradle %CMD_LINE_ARGS%

This assumes that gradle is already installed and added in your “Path”.

Could you explain?

Isaac Y | 2021-10-08 07:20

:bust_in_silhouette: Reply From: hmilab_kevin

Encountered same issue.
Was able to use a local gradle zip, by changing the distributionURL to the local file system according to eclipse - How to set the local path of gradle in gradle-wrapper properties - Stack Overflow