FORUMS PROFESSIONNELS
WINDEV
,
WEBDEV
et
WINDEV Mobile
Accueil
|
Messages récents
|
Connexion
|
Déconnexion
|
Français
Accueil
→
WINDEV Mobile 2024
→
Error compiling Google Pay libraries
Error compiling Google Pay libraries
Débuté par Sergi Calafat, 27 avr. 2020 20:18 - Aucune réponse
Connectez-vous…
Sergi Calafat
#1
Posté le 27 avril 2020 - 20:18
I get the following error while compiling and Android apk that is trying to make use of the Google Pay APIs:
Failure creating the Android application named
.
Command line: "C:\Program Files\Java\jdk-10.0.2\bin\java.exe" -Duser.dir="K:\SLAppPay\Android\gen" "-Dorg.gradle.appname=K:\SLAppPay\Android\gen" -classpath "E:\gradle-5.4.1\lib\gradle-launcher-5.4.1.jar" org.gradle.launcher.GradleMain assembleRelease -b "K:\SLAppPay\Android\gen\build.gradle"
Error returned:
:compileReleaseJavaWithJavac FAILED
K:\SLAppPay\Android\gen\src\com\mycompany\slapppay\wdgen\GWDCPSET_Google_Pay.java:218: error: cannot access AbstractSafeParcelable
IsReadyToPayRequest request = IsReadyToPayRequest.fromJson(isReadyToPayJson.get().toString());
^
class file for com.google.android.gms.common.internal.safeparcel.AbstractSafeParcelable not found
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 error
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':compileReleaseJavaWithJavac'.
Compilation failed; see the compiler error output for details.
* 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 20s
10 actionable tasks: 6 executed, 2 from cache, 2 up-to-date
I've tried to search for errors like "AbstractSafeParcelable not found" and some pointed to mismatched versions of the libraries (
https://stackoverflow.com/questions/41408514/com-google-android-gms-common-internal-safe-parcel-safe-parcelable-not-found
) but I'm using the latest versions of all the libraries, and the same seem to be used on the Google docs example (
https://developers.google.com/pay/api/android/guides/tutorial…
).
Google library versions:
- com.google.android.gms:play-services-tasks:17.0.1
- com.google.android.gms:play-services-wallet:18.0.0
I've also tried to clean the Temp directories of the sistem as per this other post:
https://forum.pcsoft.fr/fr-FR/pcsoft.fr.windevmobile/12170-wm17-erreurs-compilations/read.awp
but it didn't work either.
Signaler
0
0
→ Revenir à WINDEV Mobile 2024
WINDEV 2024
WEBDEV 2024
WINDEV Mobile 2024
WINDEV (précédentes versions)
Français
English
Español
Portuguesa
Fermer cette fenêtre
Type de recherche
Uniquement les sujets
Tous les messages
Période de recherche
Date indifférente
Moins d'une heure
Moins de 24 heures
Moins d'une semaine
Moins d'un mois
Moins d'un an
Annuler
Aperçu de votre message
Ajouter une image
Importer une image depuis une URL
Envoyer une image depuis un fichier de votre disque
Déposez ici un fichier ou cliquez sur "Parcourir..."
ou
Annuler
0%
WLangage
SQL
XML, HTML
JAVA, Javascript
Texte