• Hello [name]! Thanks for joining the GMC. Before making any posts in the Tech Support forum, can we suggest you read the forum rules? These are simple guidelines that we ask you to follow so that you can get the best help possible for your issue.

Android Can't compile using latest version of Google Play Services Extension

G

Gabriel

Guest
Due to the Google+ deprecation, since my game is using version 3.0.5 of the Google Play Services extension, these services are not funcional anymore.

When I downloaded the latest version (3.1.1) which takes the Google+ API away, without changing a single setting, GMS2 won't let me compile anymore, throwing instead an error on the console:
Code:
Ran lint on variant release: 87 issues found
Ran lint on variant debug: 87 issues found
Wrote HTML report to file:///W:/com.playhouse.ghosthitch/build/outputs/lint-results-debug.html
Wrote XML report to file:///W:/com.playhouse.ghosthitch/build/outputs/lint-results-debug.xml
:com.playhouse.ghosthitch:lint FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':com.playhouse.ghosthitch:lint'.
> Lint found errors in the project; aborting build.

Fix the issues identified by lint, or add the following to your build script to proceed with errors:
...
android {
    lintOptions {
        abortOnError false
    }
}
...

* 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: 41.048 secs
Luckily, I keep backup versions of my game and when I bring back the old version of the Google Play Services Extension, I repeat - without changing a single setting - my game is compiled successfully.

So, I opened the Lint Report and found the error:

GradleCompatible: Incompatible Gradle Versions

../../build.gradle: All com.google.android.gms libraries must use the exact same version specification (mixing versions can lead to runtime crashes). Found versions 16.0.1, 16.0.0. Examples include com.google.android.gms:play-services-base:16.0.1 and com.google.android.gms:play-services-games:16.0.0
Note: This issue has an associated quickfix operation in Android Studio/IntelliJ
Priority: 8 / 10
Category: Correctness
Severity: Error
Explanation: Incompatible Gradle Versions.
There are some combinations of libraries, or tools and libraries, that are incompatible, or can lead to bugs. One such incompatibility is compiling with a version of the Android support libraries that is not the latest version (or in particular, a version lower than your targetSdkVersion.)

More info:

To suppress this error, use the issue id "GradleCompatible" as explained in the Suppressing Warnings and Errors section.
So what's the big difference between the old and the new versions and why can't I compile with the new one??

Also, thank you YoYo Games for never offering enough documentation to understand your buggy extensions :bash:.
 

pipebkOT

Member
@Gabriel

Just uncheck the "Run lint analysis" option and that's all. All these "lint issues" are just warnings and nothing game breaking

The extension is not buggy and it's working fine :).

Just uncheck lint analysis.
Nobody use this feature.


If after compiling successfully your game crash when you launch it then the problem is not the extension. It's your code.
 
Last edited:
G

Gabriel

Guest
@Gabriel

Just uncheck the "Run lint analysis" option and that's all. All these "lint issues" are just warnings and nothing game breaking

The extension is not buggy and it's working fine :).

Just uncheck lint analysis.
Nobody use this feature.


If after compiling successfully your game crash when you launch it then the problem is not the extension. It's your code.
Looks like it worked!

Unfortunately, if I attempt to log in to Google Cloud Services nothing happens.
Might that be because I haven't uploaded this new version to the store yet?
 

pipebkOT

Member
Achievements? They should work

Can you log in into the Google play services from your game?

Just run the game through game maker studio to see the debug messages when you call each function

What extensions do you have in your project?
 
Last edited:
G

Gabriel

Guest
Achievements? They should work

Can you log in into the Google play services from your game?

Just run the game through game maker studio to see the debug messages when you call each function

What extensions do you have in your project?
My game is on the Play Store for three years now and everything used to work, prior the the Google+ deprecation.
Not trying to do self-promotion, but you can see it for yourself if you download the game through the link in my signature.

The only extensions I have are Google Play Services and Google IAP.

I'm going to give a try to the debug process once I have the time.
 

pipebkOT

Member
I can't download your game for some reason. The download is looped like two o three times and then it throws a error. But it's because I'm short in storage

Aside from that you really should
Debug In game maker studio to know why the game crash. And why it can't connect to Google play derservi
 
Last edited:
G

Guest

Guest
Hmm I can download it, but it won't run. When I tap it, it makes the screen blip for a millisecond, then the standard "app keeps closing" message flashes for another millisecond before closing itself, without giving a chance to tap close.

I'm using a Moto 5G Plus with Android 8.1.0.
 
G

Gabriel

Guest
Hmm I can download it, but it won't run. When I tap it, it makes the screen blip for a millisecond, then the standard "app keeps closing" message flashes for another millisecond before closing itself, without giving a chance to tap close.

I'm using a Moto 5G Plus with Android 8.1.0.
Oh, damn!

That used to happen to me my phone was running Android 7.0, but started to run normally again when the upgrade to 8.0 came out.
As far as I know there is more people with the same problem, and I have a hint it is related to the splash screen, but GMS does not have an option to remove it.....

[EDIT] Correction: it used to run in 7.0, crashed in 8.0 (the same that is happening to you) and started to run again in 9.0.
 
Last edited by a moderator:
G

Gabriel

Guest
Then you should create another thread about the game "crash" so people can help you
I can't download your game for some reason. The download is looped like two o three times and then it throws a error. But it's because I'm short in storage

Aside from that you really should
Debug In game maker studio to know why the game crash. And why it can't connect to Google play derservi
I tried debugging the game with the default Google Play Services Demo room that comes with the extension and once I hit the "Sign In" button the game crashes and this is printed to the console:

Code:
05-29 01:30:14.359 28757 28777 I yoyo    : Signing-in to Google Play Services
05-29 01:30:14.367 28757 28777 I yoyo    : AchievementLogin()
05-29 01:30:14.367 28757 28757 I yoyo    : Signing in..
05-29 01:30:14.624 28757 28757 I yoyo    : Silent sign in failed, attempting normal sign in..
05-29 01:30:14.639 28757 28757 I yoyo    : onPause
05-29 01:30:14.642 28757 28757 I yoyo    : Pausing the Runner
05-29 01:30:14.742 28875 28875 F DEBUG   : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
05-29 01:30:14.742 28875 28875 F DEBUG   : Build fingerprint: 'xiaomi/tissot/tissot_sprout:9/PKQ1.180917.001/V10.0.9.0.PDHMIXM:user/release-keys'
05-29 01:30:14.742 28875 28875 F DEBUG   : Revision: '0'
05-29 01:30:14.742 28875 28875 F DEBUG   : ABI: 'arm64'
05-29 01:30:14.742 28875 28875 F DEBUG   : pid: 28757, tid: 28757, name: ouse.ghosthitch  >>> com.playhouse.ghosthitch <<<
05-29 01:30:14.742 28875 28875 F DEBUG   : signal 5 (SIGTRAP), code 1 (TRAP_BRKPT), fault addr 0x6fdfa7eb5c
05-29 01:30:14.742 28875 28875 F DEBUG   :     x0  0000006fd93a2420  x1  0000006fdfa7eb3c  x2  0000000000000000  x3  0000006ff8014c00
05-29 01:30:14.742 28875 28875 F DEBUG   :     x4  0000007ffe30d830  x5  0000006fe0a8fe5b  x6  6936160000000000  x7  0000000080163669
05-29 01:30:14.742 28875 28875 F DEBUG   :     x8  0000000000000001  x9  0000000000000001  x10 000000707df38548  x11 0000006ff7a1b688
05-29 01:30:14.742 28875 28875 F DEBUG   :     x12 000000000000018c  x13 65737561505f6269  x14 000000707d7fe000  x15 000000707d7fe000
05-29 01:30:14.742 28875 28875 F DEBUG   :     x16 0000006fdfd17bd8  x17 0000006fdfa8135c  x18 0000000000000008  x19 0000006ff8014c00
05-29 01:30:14.742 28875 28875 F DEBUG   :     x20 0000006ff793d180  x21 0000006ff8014c00  x22 0000007ffe30d690  x23 0000006fe0a8fe5b
05-29 01:30:14.742 28875 28875 F DEBUG   :     x24 0000000000000004  x25 000000707df385e0  x26 0000006ff8014ca0  x27 0000000000000001
05-29 01:30:14.742 28875 28875 F DEBUG   :     x28 0000000000000001  x29 0000007ffe30d3d0
05-29 01:30:14.742 28875 28875 F DEBUG   :     sp  0000007ffe30d3d0  lr  0000006fdfafd268  pc  0000006fdfa7eb5c
05-29 01:30:14.748 28757 28777 I yoyo    : vsync timeout...
05-29 01:30:15.082 28875 28875 F DEBUG   :
05-29 01:30:15.082 28875 28875 F DEBUG   : backtrace:
05-29 01:30:15.082 28875 28875 F DEBUG   :     #00 pc 00000000002a4b5c  /data/app/com.playhouse.ghosthitch-x9iJE6Sr4rTvuLtHTACAjw==/lib/arm64/libyoyo.so (ALCdevice_android::pausePlayback()+32)
05-29 01:30:15.082 28875 28875 F DEBUG   :     #01 pc 0000000000323264  /data/app/com.playhouse.ghosthitch-x9iJE6Sr4rTvuLtHTACAjw==/lib/arm64/libyoyo.so (Java_com_yoyogames_runner_RunnerJNILib_Pause+68)
05-29 01:30:15.082 28875 28875 F DEBUG   :     #02 pc 000000000001f0b8  /data/app/com.playhouse.ghosthitch-x9iJE6Sr4rTvuLtHTACAjw==/oat/arm64/base.odex (offset 0x1e000) (com.yoyogames.runner.RunnerJNILib.IAPRestoreEvent [DEDUPED]+152)
05-29 01:30:15.082 28875 28875 F DEBUG   :     #03 pc 000000000055524c  /system/lib64/libart.so (art_quick_invoke_static_stub+604)
05-29 01:30:15.082 28875 28875 F DEBUG   :     #04 pc 00000000000cf6e8  /system/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+232)
05-29 01:30:15.082 28875 28875 F DEBUG   :     #05 pc 000000000027f22c  /system/lib64/libart.so (art::interpreter::ArtInterpreterToCompiledCodeBridge(art::Thread*, art::ArtMethod*, art::ShadowFrame*, unsigned short, art::JValue*)+344)
05-29 01:30:15.082 28875 28875 F DEBUG   :     #06 pc 0000000000279240  /system/lib64/libart.so (bool art::interpreter::DoCall<false, false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*)+968)
05-29 01:30:15.082 28875 28875 F DEBUG   :     #07 pc 0000000000525b90  /system/lib64/libart.so (MterpInvokeStatic+204)
05-29 01:30:15.082 28875 28875 F DEBUG   :     #08 pc 0000000000547794  /system/lib64/libart.so (ExecuteMterpImpl+14612)
05-29 01:30:15.082 28875 28875 F DEBUG   :     #09 pc 0000000000394288  /data/app/com.playhouse.ghosthitch-x9iJE6Sr4rTvuLtHTACAjw==/oat/arm64/base.vdex (com.playhouse.ghosthitch.RunnerActivity.onPause+56)
05-29 01:30:15.082 28875 28875 F DEBUG   :     #10 pc 0000000000252f44  /system/lib64/libart.so (_ZN3art11interpreterL7ExecuteEPNS_6ThreadERKNS_20CodeItemDataAccessorERNS_11ShadowFrameENS_6JValueEb.llvm.1997279576+488)
05-29 01:30:15.082 28875 28875 F DEBUG   :     #11 pc 0000000000514f40  /system/lib64/libart.so (artQuickToInterpreterBridge+1020)
05-29 01:30:15.082 28875 28875 F DEBUG   :     #12 pc 000000000055e0fc  /system/lib64/libart.so (art_quick_to_interpreter_bridge+92)
05-29 01:30:15.082 28875 28875 F DEBUG   :     #13 pc 00000000014e616c  /system/framework/arm64/boot-framework.oat (offset 0x915000) (android.app.Activity.performPause+92)
05-29 01:30:15.082 28875 28875 F DEBUG   :     #14 pc 0000000000969c74  /system/framework/arm64/boot-framework.oat (offset 0x915000) (android.app.Instrumentation.callActivityOnPause+52)
05-29 01:30:15.082 28875 28875 F DEBUG   :     #15 pc 0000000000ddf424  /system/framework/arm64/boot-framework.oat (offset 0x915000) (android.app.ActivityThread.performPauseActivityIfNeeded+116)
05-29 01:30:15.082 28875 28875 F DEBUG   :     #16 pc 0000000000ddf138  /system/framework/arm64/boot-framework.oat (offset 0x915000) (android.app.ActivityThread.performPauseActivity+568)
05-29 01:30:15.082 28875 28875 F DEBUG   :     #17 pc 0000000000de6108  /system/framework/arm64/boot-framework.oat (offset 0x915000) (android.app.ActivityThread.handlePauseActivity+248)
05-29 01:30:15.083 28875 28875 F DEBUG   :     #18 pc 00000000015de57c  /system/framework/arm64/boot-framework.oat (offset 0x915000) (android.app.servertransaction.PauseActivityItem.execute+140)
05-29 01:30:15.083 28875 28875 F DEBUG   :     #19 pc 00000000009de390  /system/framework/arm64/boot-framework.oat (offset 0x915000) (android.app.servertransaction.TransactionExecutor.executeLifecycleState+416)
05-29 01:30:15.083 28875 28875 F DEBUG   :     #20 pc 00000000009dea90  /system/framework/arm64/boot-framework.oat (offset 0x915000) (android.app.servertransaction.TransactionExecutor.execute+304)
05-29 01:30:15.083 28875 28875 F DEBUG   :     #21 pc 0000000000dc9324  /system/framework/arm64/boot-framework.oat (offset 0x915000) (android.app.ActivityThread$H.handleMessage+340)
05-29 01:30:15.083 28875 28875 F DEBUG   :     #22 pc 00000000016372f4  /system/framework/arm64/boot-framework.oat (offset 0x915000) (android.os.Handler.dispatchMessage+180)
05-29 01:30:15.083 28875 28875 F DEBUG   :     #23 pc 000000000163e8f0  /system/framework/arm64/boot-framework.oat (offset 0x915000) (android.os.Looper.loop+1264)
05-29 01:30:15.083 28875 28875 F DEBUG   :     #24 pc 0000000000ddd648  /system/framework/arm64/boot-framework.oat (offset 0x915000) (android.app.ActivityThread.main+664)
05-29 01:30:15.083 28875 28875 F DEBUG   :     #25 pc 000000000055524c  /system/lib64/libart.so (art_quick_invoke_static_stub+604)
05-29 01:30:15.083 28875 28875 F DEBUG   :     #26 pc 00000000000cf6e8  /system/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+232)
05-29 01:30:15.083 28875 28875 F DEBUG   :     #27 pc 000000000045c7f4  /system/lib64/libart.so (art::(anonymous namespace)::InvokeWithArgArray(art::ScopedObjectAccessAlreadyRunnable const&, art::ArtMethod*, art::(anonymous namespace)::ArgArray*, art::JValue*, char const*)+104)
05-29 01:30:15.083 28875 28875 F DEBUG   :     #28 pc 000000000045e248  /system/lib64/libart.so (art::InvokeMethod(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, _jobject*, _jobject*, unsigned long)+1440)
05-29 01:30:15.083 28875 28875 F DEBUG   :     #29 pc 00000000003ee18c  /system/lib64/libart.so (art::Method_invoke(_JNIEnv*, _jobject*, _jobject*, _jobjectArray*)+52)
05-29 01:30:15.083 28875 28875 F DEBUG   :     #30 pc 000000000078eed4  /system/framework/arm64/boot-core-oj.oat (offset 0x2dc000) (java.lang.Class.getDeclaredMethodInternal [DEDUPED]+180)
05-29 01:30:15.083 28875 28875 F DEBUG   :     #31 pc 0000000001a43758  /system/framework/arm64/boot-framework.oat (offset 0x915000) (com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run+136)
05-29 01:30:15.083 28875 28875 F DEBUG   :     #32 pc 0000000001a4efd0  /system/framework/arm64/boot-framework.oat (offset 0x915000) (com.android.internal.os.ZygoteInit.main+3088)
05-29 01:30:15.083 28875 28875 F DEBUG   :     #33 pc 000000000055524c  /system/lib64/libart.so (art_quick_invoke_static_stub+604)
05-29 01:30:15.083 28875 28875 F DEBUG   :     #34 pc 00000000000cf6e8  /system/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+232)
05-29 01:30:15.083 28875 28875 F DEBUG   :     #35 pc 000000000045c7f4  /system/lib64/libart.so (art::(anonymous namespace)::InvokeWithArgArray(art::ScopedObjectAccessAlreadyRunnable const&, art::ArtMethod*, art::(anonymous namespace)::ArgArray*, art::JValue*, char const*)+104)
05-29 01:30:15.083 28875 28875 F DEBUG   :     #36 pc 000000000045c454  /system/lib64/libart.so (art::InvokeWithVarArgs(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, _jmethodID*, std::__va_list)+424)
05-29 01:30:15.083 28875 28875 F DEBUG   :     #37 pc 0000000000361ac8  /system/lib64/libart.so (art::JNI::CallStaticVoidMethodV(_JNIEnv*, _jclass*, _jmethodID*, std::__va_list)+652)
05-29 01:30:15.083 28875 28875 F DEBUG   :     #38 pc 00000000000b1e40  /system/lib64/libandroid_runtime.so (_JNIEnv::CallStaticVoidMethod(_jclass*, _jmethodID*, ...)+116)
05-29 01:30:15.083 28875 28875 F DEBUG   :     #39 pc 00000000000b4864  /system/lib64/libandroid_runtime.so (android::AndroidRuntime::start(char const*, android::Vector<android::String8> const&, bool)+752)
05-29 01:30:15.083 28875 28875 F DEBUG   :     #40 pc 000000000000251c  /system/bin/app_process64 (main+2000)
05-29 01:30:15.083 28875 28875 F DEBUG   :     #41 pc 00000000000ca47c  /system/lib64/libc.so (__libc_init+88)
05-29 01:30:15.124 28757 28777 I yoyo    : vsync timeout...
05-29 01:30:15.249 28757 28777 I yoyo    : vsync timeout...
05-29 01:30:15.374 28757 28777 I yoyo    : vsync timeout...
 
Top