Mert
Member
Edit : In case anyone wonders I have a working extension that can be found on GMDevBlog
This is more likely related with Google libraries, but since I'm working on Game Maker Studio 2, I wanted to ask it here. I do not have enough experience on dependencies & importing stuff work in Java. I wish to learn.
Back to topic, I've managed to write a Firebase extension about remote configurations and analytics. My problem is that I cannot use it with Yoyogames' Google Play Services Extension.
Here's my RootFiles/build.gradle
My Firebase plugin's gradle dependencies
Yoyogames' Google Play Services Extension Dependencies
The result is BUILD SUCCESSFUL. But as soon as app gets opened, an error is thrown and game closes itself. Here's a part of the log.
Now one part gets my attention is Caused by: ...java.lang.ClassNotFoundException: Didn't find class "com.google.android.gms.auth.api.signin.internal.zzz"
What am I doing wrong, what should I do ? Any tutorials appreciated.
This is more likely related with Google libraries, but since I'm working on Game Maker Studio 2, I wanted to ask it here. I do not have enough experience on dependencies & importing stuff work in Java. I wish to learn.
Back to topic, I've managed to write a Firebase extension about remote configurations and analytics. My problem is that I cannot use it with Yoyogames' Google Play Services Extension.
Here's my RootFiles/build.gradle
Code:
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
jcenter()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.2.0+'
classpath 'com.google.gms:google-services:4.1.0'
}
}
allprojects {
repositories {
jcenter()
maven {
url "https://maven.google.com"
}
}
}
Code:
compile 'com.google.firebase:firebase-core:16.0.4'
compile 'com.google.firebase:firebase-config:16.0.1'
Code:
compile 'com.google.android.gms:play-services-games:11.8.0'
compile 'com.google.android.gms:play-services-ads:11.8.0'
compile 'com.google.android.gms:play-services-plus:11.8.0'
compile 'com.google.android.gms:play-services-gcm:11.8.0'
compile 'com.google.android.gms:play-services-auth:11.8.0'
compile 'com.google.android.ads.consent:consent-library:1.0.3'
compile fileTree(dir: 'libs', include: ['*.jar'])
}
repositories
{
maven
{
url "https://maven.google.com"
}
}
dependencies
{
Code:
10-24 23:39:54.887 27148 27148 D AndroidRuntime: Shutting down VM
10-24 23:39:54.894 27148 27148 E AndroidRuntime: FATAL EXCEPTION: main
10-24 23:39:54.894 27148 27148 E AndroidRuntime: Process: com.sectionfive.flax, PID: 27148
10-24 23:39:54.894 27148 27148 E AndroidRuntime: java.lang.NoClassDefFoundError: Failed resolution of: Lcom/google/android/gms/auth/api/signin/internal/zzz;
10-24 23:39:54.894 27148 27148 E AndroidRuntime: at com.google.android.gms.auth.api.signin.internal.zzo.<init>(Unknown Source)
10-24 23:39:54.894 27148 27148 E AndroidRuntime: at com.google.android.gms.auth.api.signin.internal.zzo.zzbs(Unknown Source)
10-24 23:39:54.894 27148 27148 E AndroidRuntime: at com.google.android.gms.auth.api.signin.internal.zzo.zzbr(Unknown Source)
10-24 23:39:54.894 27148 27148 E AndroidRuntime: at com.google.android.gms.auth.api.signin.GoogleSignIn.getLastSignedInAccount(Unknown Source)
10-24 23:39:54.894 27148 27148 E AndroidRuntime: at com.sectionfive.flax.GooglePlayServicesExtension.getCurrentAccountSignedIn(GooglePlayServicesExtension.java:390)
10-24 23:39:54.894 27148 27148 E AndroidRuntime: at com.sectionfive.flax.GooglePlayServicesExtension.isSignedIn(GooglePlayServicesExtension.java:395)
10-24 23:39:54.894 27148 27148 E AndroidRuntime: at com.sectionfive.flax.GooglePlayServicesExtension.onResume(GooglePlayServicesExtension.java:244)
10-24 23:39:54.894 27148 27148 E AndroidRuntime: at com.sectionfive.flax.RunnerActivity.onResume(RunnerActivity.java:1070)
10-24 23:39:54.894 27148 27148 E AndroidRuntime: at android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1270)
10-24 23:39:54.894 27148 27148 E AndroidRuntime: at android.app.Activity.performResume(Activity.java:6977)
10-24 23:39:54.894 27148 27148 E AndroidRuntime: at android.app.ActivityThread.performResumeActivity(ActivityThread.java:3455)
10-24 23:39:54.894 27148 27148 E AndroidRuntime: at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:3518)
10-24 23:39:54.894 27148 27148 E AndroidRuntime: at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2773)
10-24 23:39:54.894 27148 27148 E AndroidRuntime: at android.app.ActivityThread.-wrap12(ActivityThread.java)
10-24 23:39:54.894 27148 27148 E AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1514)
10-24 23:39:54.894 27148 27148 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:102)
10-24 23:39:54.894 27148 27148 E AndroidRuntime: at android.os.Looper.loop(Looper.java:163)
10-24 23:39:54.894 27148 27148 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:6205)
10-24 23:39:54.894 27148 27148 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
10-24 23:39:54.894 27148 27148 E AndroidRuntime: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:904)
10-24 23:39:54.894 27148 27148 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:794)
10-24 23:39:54.894 27148 27148 E AndroidRuntime: Caused by: java.lang.ClassNotFoundException: Didn't find class "com.google.android.gms.auth.api.signin.internal.zzz" on path: DexPathList[[zip file "/data/app/com.sectionfive.flax-1/base.apk"],nativeLibraryDirectories=[/data/app/com.sectionfive.flax-1/lib/arm64, /data/app/com.sectionfive.flax-1/base.apk!/lib/arm64-v8a, /system/lib64, /vendor/lib64]]
10-24 23:39:54.894 27148 27148 E AndroidRuntime: at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
10-24 23:39:54.894 27148 27148 E AndroidRuntime: at java.lang.ClassLoader.loadClass(ClassLoader.java:380)
10-24 23:39:54.894 27148 27148 E AndroidRuntime: at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
10-24 23:39:54.894 27148 27148 E AndroidRuntime: ... 21 more
What am I doing wrong, what should I do ? Any tutorials appreciated.
Last edited: