PC SOFT

FORUMS PROFESSIONNELS
WINDEVWEBDEV et WINDEV Mobile

Accueil → WINDEV 2024 → [WM21] Gradle
[WM21] Gradle
Débuté par ICI, 29 mai 2016 21:03 - 1 réponse
Posté le 29 mai 2016 - 21:03
Generating application with this new Gradle is very slow.
I dont read (investigate) for what is this Gradle but now Mobile can be propagated
like 10 times slower (for me).
First You must find from generated error that "Version 2.2 is expected", but on official page
for users Gradle 2.13 is default for download (You need to choose version from list, if you know what version you need).
Posté le 30 mai 2016 - 00:03
Hi. You can use Gradle 2.9. The Gradle has a issue comparing the running version and if decimal part begin with 1 (2.10 to 2.13 versions) it give the error about the version.

To optimize the generation and compilation phases you can edit the gradle.properties in .gradle folder in your perfil directory and set the next code:

# Project-wide Gradle settings.

# IDE (e.g. Android Studio) users:
# Settings specified in this file will override any Gradle settings
# configured through the IDE.

# For more details on how to configure your build environment visit
# http://www.gradle.org/docs/current/userguide/build_environment.html

# The Gradle daemon aims to improve the startup and execution time of Gradle.
# When set to true the Gradle daemon is to run the build.
# TODO: disable daemon on CI, since builds should be clean and reliable on servers
org.gradle.daemon=true

# Specifies the JVM arguments used for the daemon process.
# The setting is particularly useful for tweaking memory settings.
# Default value: -Xmx10248m -XX:MaxPermSize=256m
org.gradle.jvmargs=-Xms256m -Xmx1024m -XX:MaxPermSize=256m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8

# When configured, Gradle will run in incubating parallel mode.
# This option should only be used with decoupled projects. More details, visit
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html…
org.gradle.parallel=true

# Enables new incubating mode that makes Gradle selective when configuring projects.
# Only relevant projects are configured which results in faster builds for large multi-projects.
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html…
#org.gradle.configureondemand=true

org.gradle.java.home=D:\\Program Files\\Java\\jdk1.8.0_92

com.android.build.gradle.overridePathCheck=true