Offline installation of Gradle 3.4.0?

hello,
is it possible to install Gradle 3.4.0 as offline to building Android project without using internet connection for unity 2019.x??

this is gradle-3.4.0.jar

or is it possible to building project [.apk] without using Gradle on 2019.x?? [i mean disabling gradle or do with something as like as internal method of 2018.x]

Unity has a local Gradle install when you add Android Build support.

An example default install location on macOS using Unity Hub is: /Applications/Unity/Hub/Editor/2018.4.8f1/PlaybackEngines/AndroidPlayer/Tools/gradle

When you build in the Unity Editor, it uses this by default.

However, to be clear: Gradle is designed to download missing dependencies at build time, so if Gradle is failing offline, one of your plugins or packages may be declaring a dependency in its own build.gradle file. (I believe Gradle keeps these dependencies cached locally after first download, by default, however, so an offline build after 1 successful online build should work.)

yup … this is main gradle 5.1.1 and its working …
but i mean gradle 3.4.0 for android and dependencies that needs on gradle building…

Sorry, I can’t help you there beyond telling you to look into Gradle’s features for offline caching: gradle offline cache - Google Search

thanks for your response :]

but i’m using an stupid method to building APK on 2019.x series!!
1st) exporting an android project :slight_smile:
2nd) opening it on Android Studio and syncing Gradles :frowning:
3rd) and then building APK … stuuuuuuuuuupid method :expressionless:

why internal builder was removed on 2019.x series?!?!
i hate Gradle … hate hate hate …

2 Likes