playgameservices / play-games-plugin-for-unity

Google Play Games plugin for Unity
Other
3.45k stars 961 forks source link

ver 0.9.53 (unity2018.2.14f1) Didn't find class ....GooglePlayServicesUtilLight, ....Releasable #2351

Open ShockWave2048 opened 5 years ago

ShockWave2048 commented 5 years ago

Hi all! Can't start Google Play Services from app. It throw exception - java.lang.ClassNotFoundException

11-04 10:14:36.668: I/art(5706): Caused by: java.lang.ClassNotFoundException: Didn't find class "com.google.android.gms.common.GooglePlayServicesUtilLight" on path: DexPathList[[zip file "/data/app/com.gamedev.lsd-1/base.apk"],nativeLibraryDirectories=[/data/app/com.gamedev.lsd-1/lib/arm, /data/app/com.gamedev.lsd-1/base.apk!/lib/armeabi-v7a, /system/lib, /vendor/lib]] 11-04 10:14:36.669: I/art(5706): Caused by: java.lang.ClassNotFoundException: Didn't find class "com.google.android.gms.common.api.Releasable" on path: DexPathList[[zip file "/data/app/com.gamedev.lsd-1/base.apk"],nativeLibraryDirectories=[/data/app/com.gamedev.lsd-1/lib/arm, /data/app/com.gamedev.lsd-1/base.apk!/lib/armeabi-v7a, /system/lib, /vendor/lib]] 11-04 10:14:36.671: I/art(5706): Caused by: java.lang.ClassNotFoundException: Didn't find class "com.google.android.gms.common.internal.safeparcel.AbstractSafeParcelable" on path: DexPathList[[zip file "/data/app/com.gamedev.lsd-1/base.apk"],nativeLibraryDirectories=[/data/app/com.gamedev.lsd-1/lib/arm, /data/app/com.gamedev.lsd-1/base.apk!/lib/armeabi-v7a, /system/lib, /vendor/lib]] 11-04 10:14:36.671: I/art(5706): Caused by: java.lang.ClassNotFoundException: Didn't find class "com.google.android.gms.common.internal.safeparcel.AbstractSafeParcelable" on path: DexPathList[[zip file "/data/app/com.gamedev.lsd-1/base.apk"],nativeLibraryDirectories=[/data/app/com.gamedev.lsd-1/lib/arm, /data/app/com.gamedev.lsd-1/base.apk!/lib/armeabi-v7a, /system/lib, /vendor/lib]] 11-04 10:14:36.672: I/art(5706): Caused by: java.lang.ClassNotFoundException: Didn't find class "com.google.android.gms.common.internal.safeparcel.AbstractSafeParcelable" on path: DexPathList[[zip file "/data/app/com.gamedev.lsd-1/base.apk"],nativeLibraryDirectories=[/data/app/com.gamedev.lsd-1/lib/arm, /data/app/com.gamedev.lsd-1/base.apk!/lib/armeabi-v7a, /system/lib, /vendor/lib]]

call only -``` PlayGamesPlatform.DebugLogEnabled = true; PlayGamesPlatform.Activate();

olehkuznetsov commented 5 years ago

Have you tried the 'Force Resolve' option in 'Play Services Resolver' menu?

ShockWave2048 commented 5 years ago

Yes, before every build.

olehkuznetsov commented 5 years ago

Do you have proguard enabled for your build?

ShockWave2048 commented 5 years ago

I am try proguard in enable/disable state (with key -keep class com.google.android.gms.* { ; })

olehkuznetsov commented 5 years ago

Can you try to create a new project based on the Minimal sample and to check if the error persists, please?

ShockWave2048 commented 5 years ago

Yes, i can try with 20 hours. Sorry.

migellal commented 5 years ago

Is there any news?

ShockWave2048 commented 5 years ago

No, shifted to next time.

migellal commented 5 years ago

implementation "com.google.android.gms:play-services-base:x.y.z" implementation "com.google.android.gms:play-services-basement:x.y.z" implementation "com.google.android.gms:play-services-tasks:x.y.z"

This should help.

ShockWave2048 commented 5 years ago

Big thanks!

ShockWave2048 commented 5 years ago

migellal - where it placed? (command @implementation@)

migellal commented 5 years ago

In 'mainTemplate.gradle' file in dependencies