PROFESSIONAL NEWSGROUPS
WINDEV
,
WEBDEV
and
WINDEV Mobile
Home
|
Recent messages
|
Connect
|
Sign out
|
English
Home
→
WINDEV Mobile 2024
→
Error compiling Google Pay libraries
Error compiling Google Pay libraries
Started by Sergi Calafat, Apr., 27 2020 8:18 PM - No answer
Connect yourself…
Sergi Calafat
#1
Posted on April, 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.
Report
0
0
→ Go back to WINDEV Mobile 2024
WINDEV 2024
WEBDEV 2024
WINDEV Mobile 2024
WINDEV (earlier versions)
Français
English
Español
Portuguesa
Close this window
Search type
Only topics
All the messages
Search period
Any time
Past hour
Past 24 hours
Past week
Past month
Past year
Cancel
Preview of your message
Adding an image
Import an image from a URL
Send an image from a file of your disk
Drop a file or click "Browse..."
or
Cancel
0%
WLanguage
SQL
XML, HTML
JAVA, Javascript
Text