Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GA4 Unity problem AndroidJavaException? #177

Open
kkohno opened this issue Aug 9, 2018 · 3 comments
Open

GA4 Unity problem AndroidJavaException? #177

kkohno opened this issue Aug 9, 2018 · 3 comments

Comments

@kkohno
Copy link

kkohno commented Aug 9, 2018

I getting the following issue on android. Bug in plugin - I made an empty project Unity version 2018.2.2f1 to check this and get this issue, but on Editor is ok.

adb logcat:

AndroidJavaException: java.lang.NoClassDefFoundError: Failed resolution of: Lcom/google/android/gms/common/internal/Preconditions;
java.lang.NoClassDefFoundError: Failed resolution of: Lcom/google/android/gms/common/internal/Preconditions;
at com.google.android.gms.internal.measurement.zzat.zzc(Unknown Source)
at com.google.android.gms.analytics.GoogleAnalytics.getInstance(Unknown Source)
at com.unity3d.player.UnityPlayer.nativeRender(Native Method)
at com.unity3d.player.UnityPlayer.c(Unknown Source)
at com.unity3d.player.UnityPlayer$e$2.queueIdle(Unknown Source)
at android.os.MessageQueue.next(MessageQueue.java:392)
at android.os.Looper.loop(Looper.java:136)
at com.unity3d.player.UnityPlayer$e.run(Unknown Source)
Caused by: java.lang.ClassNotFoundException: Didn't find class "com.google.android.gms.common.internal.Preconditions" on path: DexPathList[[zip file "/data/app/com.pixel.gun.combats-1/base.apk"],nativeLibraryDirectories=[/data/app/com.pixel.gun.combats-1/lib/arm, /data/app/com.pixel.gun.com

@ido567
Copy link

ido567 commented Sep 28, 2018

Did you find the problem? @kkohno

@ColorTwist
Copy link

ColorTwist commented Oct 18, 2018

Same here- 2018.2.6
Seems issue is related to gradle.
Any resolve for this?

@ido567
Copy link

ido567 commented Oct 19, 2018

Eventually, I didn't use the SDK directly and used this plugin: https://assetstore.unity.com/packages/3d/characters/google-analytics-sdk-16317

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants