GRUPOS DE DISCUSSÃO PROFISSIONAL
WINDEV
,
WEBDEV
e
WINDEV Mobile
Inicio
|
Mensagens recentes
|
Conecte-se...
|
Disconnect
|
Português
Inicio
→
WINDEV Mobile 2024
→
Error compiling Google Pay libraries
Error compiling Google Pay libraries
Iniciado por Sergi Calafat, abr., 27 2020 8:18 PM - Sem resposta
Conecte-se…
Sergi Calafat
#1
Publicado em abril, 27 2020 - 8:18 PM
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.
Denunciar
0
0
→ Voltar para WINDEV Mobile 2024
WINDEV 2024
WEBDEV 2024
WINDEV Mobile 2024
WINDEV (versões anteriores)
Français
English
Español
Portuguesa
Fermer cette fenêtre
Tipo de Pesquisa
Apenas tópicos
Todas as mensagens
Período de pesquisa
Qualquer momento
Última hora
Últimas 24 horas
Semana passada
Mês passado
Ano passado
Cancelar
Pré-visualização da sua mensagem
Adicionar imagem
Importar uma imagem de uma URL
Enviar uma imagem a partir do seu disco
Deixe um ficheiro ou clique em "Procurar ..."
ou
Cancelar
0%
WLanguage
SQL
XML, HTML
JAVA, Javascript
Texto