PC SOFT

FORUMS PROFESSIONNELS
WINDEVWEBDEV et WINDEV Mobile

Accueil → WINDEV Mobile 2024 → Erreur de génération de l'application Android
Erreur de génération de l'application Android
Débuté par Coach.it, 20 mai 2020 09:24 - 7 réponses
Posté le 20 mai 2020 - 09:24
Bonjour à tous,

J'utilise WM25 (25.0.266.0).
J'essaie de générer une application Android la plus simple possible (un libellé au milieu de la fenêtre...).
Lorsque je clique sur "générer", je laisse toute les options par défaut, notamment "Utiliser les outils installés automatiquement" (j'ai quand même dû installer le JDK 10), j'obtiens cette erreur :

Echec de la création de l'application Android <D:\Workspace\Windev\Mes Projets Mobile\essai 25\essai_25\Exe\essai_25.apk>.


Ligne de commande : "C:\Program Files\Java\jdk-10.0.2\bin\java.exe" -Duser.dir="D:\Workspace\Windev\Mes Projets Mobile\essai 25\essai_25\Android\gen" "-Dorg.gradle.appname=D:\Workspace\Windev\Mes Projets Mobile\essai 25\essai_25\Android\gen" -classpath "C:\Users\NHE\AppData\Roaming\PC SOFT\25.0\Android\Gradle\lib\gradle-launcher-5.4.1.jar" org.gradle.launcher.GradleMain assembleRelease -b "D:\Workspace\Windev\Mes Projets Mobile\essai 25\essai_25\Android\gen\build.gradle"


Erreur retournée :

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring root project 'gen'.
> Could not resolve all artifacts for configuration ':classpath'.
> Could not download protobuf-java.jar (com.google.protobuf:protobuf-java:3.4.0)
> Could not get resource 'https://jcenter.bintray.com/com/google/protobuf/protobuf-java/3.4.0/protobuf-java-3.4.0.jar'.
> Could not GET 'https://d29vzk4ow07wi7.cloudfront.net/dce7e66b32456a1b1198da0caff3a8acb71548658391e798c79369241e6490a4…'.
> sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
> Could not download bcpkix-jdk15on.jar (org.bouncycastle:bcpkix-jdk15on:1.56)
> Could not get resource 'https://jcenter.bintray.com/org/bouncycastle/bcpkix-jdk15on/1.56/bcpkix-jdk15on-1.56.jar'.
> Could not GET 'https://d29vzk4ow07wi7.cloudfront.net/7043dee4e9e7175e93e0b36f45b1ec1ecb893c5f755667e8b916eb8dd201c6ca…'.
> sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
> Could not download bcprov-jdk15on.jar (org.bouncycastle:bcprov-jdk15on:1.56)
> Could not get resource 'https://jcenter.bintray.com/org/bouncycastle/bcprov-jdk15on/1.56/bcprov-jdk15on-1.56.jar'.
> Could not GET 'https://d29vzk4ow07wi7.cloudfront.net/963e1ee14f808ffb99897d848ddcdb28fa91ddda867eb18d303e82728f878349…'.
> sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
> Could not download fastutil.jar (it.unimi.dsi:fastutil:7.2.0)
> Could not get resource 'https://jcenter.bintray.com/it/unimi/dsi/fastutil/7.2.0/fastutil-7.2.0.jar'.
> Could not GET 'https://d29vzk4ow07wi7.cloudfront.net/74fa208043740642f7e6eb09faba15965218ad2f50ce3020efb100136e4b591c…'.
> sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
> Could not download jimfs.jar (com.google.jimfs:jimfs:1.1)
> Could not get resource 'https://jcenter.bintray.com/com/google/jimfs/jimfs/1.1/jimfs-1.1.jar'.
> Could not GET 'https://d29vzk4ow07wi7.cloudfront.net/c4828e28d7c0a930af9387510b3bada7daa5c04d7c25a75c7b8b081f1c257ddd…'.
> sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
> Could not download guava.jar (com.google.guava:guava:27.0.1-jre)
> Could not get resource 'https://jcenter.bintray.com/com/google/guava/guava/27.0.1-jre/guava-27.0.1-jre.jar'.
> Could not GET 'https://d29vzk4ow07wi7.cloudfront.net/e1c814fd04492a27c38e0317eabeaa1b3e950ec8010239e400fe90ad6c9107b4…'.
> sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
> Could not download httpclient.jar (org.apache.httpcomponents:httpclient:4.5.6)
> Could not get resource 'https://jcenter.bintray.com/org/apache/httpcomponents/httpclient/4.5.6/httpclient-4.5.6.jar'.
> Could not GET 'https://d29vzk4ow07wi7.cloudfront.net/c03f813195e7a80e3608d0ddd8da80b21696a4c92a6a2298865bf149071551c7…'.
> sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
> Could not download httpcore.jar (org.apache.httpcomponents:httpcore:4.4.10)
> Could not get resource 'https://jcenter.bintray.com/org/apache/httpcomponents/httpcore/4.4.10/httpcore-4.4.10.jar'.
> Could not GET 'https://d29vzk4ow07wi7.cloudfront.net/78ba1096561957db1b55200a159b648876430342d15d461277e62360da19f6fd…'.
> sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
> Could not download kotlin-reflect.jar (org.jetbrains.kotlin:kotlin-reflect:1.3.41)
> Could not get resource 'https://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-reflect/1.3.41/kotlin-reflect-1.3.41.jar'.
> Could not GET 'https://d29vzk4ow07wi7.cloudfront.net/01d469878c6853a607baaadf869c7474b971abe6dd2cb74f244bea0ffb453c76…'.
> sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
> Could not download antlr4.jar (org.antlr:antlr4:4.5.3)
> Could not get resource 'https://jcenter.bintray.com/org/antlr/antlr4/4.5.3/antlr4-4.5.3.jar'.
> Could not GET 'https://d29vzk4ow07wi7.cloudfront.net/a32de739cfdf515774e696f91aa9697d2e7731e5cb5045ca8a4b657f8b1b4fb4…'.
> sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
> Could not download juniversalchardet.jar (com.googlecode.juniversalchardet:juniversalchardet:1.0.3)
> Could not get resource 'https://jcenter.bintray.com/com/googlecode/juniversalchardet/juniversalchardet/1.0.3/juniversalchardet-1.0.3.jar'.
> Could not GET 'https://d29vzk4ow07wi7.cloudfront.net/cd49678784c46aa8789c060538e0154013bb421b…'.
> sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
> Could not download gson.jar (com.google.code.gson:gson:2.8.5)
> Could not get resource 'https://jcenter.bintray.com/com/google/code/gson/gson/2.8.5/gson-2.8.5.jar'.
> Could not GET 'https://d29vzk4ow07wi7.cloudfront.net/233a0149fc365c9f6edbd683cfe266b19bdc773be98eabdaf6b3c924b48e7d81…'.
> sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
> Could not download kotlin-stdlib.jar (org.jetbrains.kotlin:kotlin-stdlib:1.3.41)
> Could not get resource 'https://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-stdlib/1.3.41/kotlin-stdlib-1.3.41.jar'.
> Could not GET 'https://d29vzk4ow07wi7.cloudfront.net/6ea3d0921b26919b286f05cbdb906266666a36f9a7c096197114f7495708ffbc…'.
> sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
> Could not download proguard-base.jar (net.sf.proguard:proguard-base:6.0.3)
> Could not get resource 'https://jcenter.bintray.com/net/sf/proguard/proguard-base/6.0.3/proguard-base-6.0.3.jar'.
> Could not GET 'https://d29vzk4ow07wi7.cloudfront.net/75bc89695fa66e75374ecda439b802406f0ab1d826dd386eed0a23b1f0a9d264…'.
> sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
> Could not download auto-value.jar (com.google.auto.value:auto-value:1.5.2)
> Could not get resource 'https://jcenter.bintray.com/com/google/auto/value/auto-value/1.5.2/auto-value-1.5.2.jar'.
> Could not GET 'https://d29vzk4ow07wi7.cloudfront.net/6cac9421439b39b9f4aa76738ced039462a69911c410f2c372c196b0f4b7f4cf…'.
> sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
> Could not download jdom2.jar (org.jdom:jdom2:2.0.6)
> Could not get resource 'https://jcenter.bintray.com/org/jdom/jdom2/2.0.6/jdom2-2.0.6.jar'.
> Could not GET 'https://d29vzk4ow07wi7.cloudfront.net/6f14738ec2e9dd0011e343717fa624a10f8aab64…'.
> sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
> Could not download commons-compress.jar (org.apache.commons:commons-compress:1.12)
> Could not get resource 'https://jcenter.bintray.com/org/apache/commons/commons-compress/1.12/commons-compress-1.12.jar'.
> Could not GET 'https://d29vzk4ow07wi7.cloudfront.net/2c1542faf343185b7cab9c3d55c8ae5471d6d095d3887a4adefdbdf2984dc0b6…'.
> sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
> Could not download trove4j.jar (org.jetbrains.trove4j:trove4j:20160824)
> Could not get resource 'https://jcenter.bintray.com/org/jetbrains/trove4j/trove4j/20160824/trove4j-20160824.jar'.
> Could not GET 'https://d29vzk4ow07wi7.cloudfront.net/1917871c8deb468307a584680c87a44572f5a8b0b98c6d397fc0f5f86596dbe7…'.
> sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
> Could not download commons-codec.jar (commons-codec:commons-codec:1.10)
> Could not get resource 'https://jcenter.bintray.com/commons-codec/commons-codec/1.10/commons-codec-1.10.jar'.
> Could not GET 'https://d29vzk4ow07wi7.cloudfront.net/4b95f4897fa13f2cd904aee711aeafc0c5295cd8…'.
> sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
> Could not download jaxb-runtime.jar (org.glassfish.jaxb:jaxb-runtime:2.2.11)
> Could not get resource 'https://jcenter.bintray.com/org/glassfish/jaxb/jaxb-runtime/2.2.11/jaxb-runtime-2.2.11.jar'.
> Could not GET 'https://d29vzk4ow07wi7.cloudfront.net/0065510afc78679e347b0d774617a97fedac94f8…'.
> sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
> Could not download FastInfoset.jar (com.sun.xml.fastinfoset:FastInfoset:1.2.13)
> Could not get resource 'https://jcenter.bintray.com/com/sun/xml/fastinfoset/FastInfoset/1.2.13/FastInfoset-1.2.13.jar'.
> Could not GET 'https://d29vzk4ow07wi7.cloudfront.net/098f56b9354e27bd2941cc5d461344e240ae51ae…'.
> sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

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

* Get more help at https://help.gradle.org

BUILD FAILED in 3s


J'ai lu plusieurs articles sur ce sujet mais aucun n'a résolu mon problème.

Merci de votre retour.

Coach.it
Posté le 26 mai 2020 - 07:40
Bonjour à tous,

Désolé de revenir à la charge avec ce sujet mais je n'arrive toujours pas à générer mon projet.
J'ai vu plusieurs cas traitant de problèmes similaires mais avec des versions antérieures et les solutions proposées ne fonctionnent pas.

Merci de vos retours.

Bien cordialement,

Coach.it
Membre enregistré
795 messages
Popularité : +40 (42 votes)
Posté le 26 mai 2020 - 11:01
Bonjour, il semble y avoir un problème pour accéder aux serveurs où se trouvent les bibliothèques dont votre projet a besoin. Avez-vous essayé de cliquer sur les liens de la liste des erreurs ?

Rubén
Posté le 26 mai 2020 - 16:16
Bonjour,

Merci pour votre retour.
Il y a 2 types de lien dans la liste : un premier "https://jcenter..." qui pointe vers un fichier .jar que je peux télécharger et le deuxième "https://d29vzk..." auquel je n'ai effectivement pas accès.
Je vais me rapprocher de mon prestataire informatique voir s'il y a un éventuel blocage.
Je vous tiendrai au courant.

Encore merci.

Coach.it
Membre enregistré
795 messages
Popularité : +40 (42 votes)
Posté le 26 mai 2020 - 18:16
L'erreur concerne des problèmes de certificats

sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

Je vois que vous utilisez jdk-10.0.2. Installez la dernière version de Java 8

Ruben
Membre enregistré
3 333 messages
Popularité : +93 (137 votes)
Posté le 26 mai 2020 - 18:43
Les liens "https://d29vzk..." sont des versions sécurisées des liens "https://jcenter..."
Cela pointe vers les mêmes fichier .jar
Les liens d29 ne sont pas nécessaires.
En plus beaucoup de jar sont inutiles car le framework pcsoft contient des équivalences.
Maintenant, je ne peux rien dire de plus car je n'ai pas vu tes sources.
Posté le 27 mai 2020 - 08:11
Merci à tous les deux pour vos réponses.

Ruben, effectivement, j'utilise le JDK-10.0.2, c'est celui qui était préconisé. Je vais essayer avec Java8 et vous dirai.

Popoy, mes fichiers sources sont on ne peut plus simples : une fenêtre avec un libellé au milieu, c'est tout, c'était juste pour tester.

Merci encore pour votre aide.

Coach.it
Posté le 27 mai 2020 - 09:21
Je viens d'installer la dernière version de java et désinstallé la précédente.
Le résultat est toujours le même avec exactement les mêmes erreurs.

Coach.it