PC SOFT

FORUMS PROFESSIONNELS
WINDEVWEBDEV et WINDEV Mobile

Accueil → WINDEV Mobile 2024 → [WM 24] error at Gradie start
[WM 24] error at Gradie start
Débuté par VEGEboss, 25 avr. 2019 00:05 - 1 réponse
Membre enregistré
88 messages
Popularité : +2 (2 votes)
Posté le 25 avril 2019 - 00:05
Hello folks

I just installed Windev Mobile 24 and tried to rebuild my last Android App, but
when Gradie starts I get this message

Failure creating the Android application named .


Command line: "C:\Program Files\Java\jdk1.8.0_91\bin\java.exe" -Duser.dir="D:\My Mobile Projects\GTP - iOS\Android\Gen" "-Dorg.gradle.appname=D:\My Mobile Projects\GTP - iOS\Android\Gen" -classpath "D:\Android\Gradle\lib\gradle-launcher-4.4.1.jar" org.gradle.launcher.GradleMain assembleRelease -b "D:\My Mobile Projects\GTP - iOS\Android\Gen\build.gradle"


Error returned:

FAILURE: Build failed with an exception.

* Where:
Build file 'D:\My Mobile Projects\GTP - iOS\Android\Gen\build.gradle' line: 3

* What went wrong:
A problem occurred evaluating root project 'Gen'.
Could not find method google() for arguments [] on repository container.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 2.356 secs


I updated Gradie to ver. 4.4.1 (as requested from WM) but I don't know what to do now
...can someone help me?
Membre enregistré
794 messages
Popularité : +40 (42 votes)
Posté le 28 avril 2019 - 23:42
Hi. It seems a problem in the definition of the repositories for the search of Java artefacts (Maven). It seems that the definition of the Google() repository is not correct. Have you edited the list of repositories that WM24 brings by default? Try deleting the Android folder from the project folder and generate the application again.

Rubén