ClassNotFoundException:com.google.android.gms.analytics.GoogleAnalytics Unity 5.3.1f
Disar opened this issue · comments
Using Unity 5.3.1 and Google SDK 8.4 I get the following error. The game compiles fine but crashes on runtime. Im also using this plugin which forces the AAR files of version 8.4.
AndroidJavaException:java.lang.ClassNotFoundException:com.google.android.gms.analytics.GoogleAnalytics
java.lang.ClassNotFoundException: com.google.android.gms.analytics.GoogleAnalytics
at java.lang.Class.classForName(Native Method)
at java.lang.Class.forName(Class.java:309)
at java.lang.Class.forName(Class.java:273)
at com.unity3d.player.UnityPlayer.nativeRender(Native Method)
at com.unity3d.player.UnityPlayer.a(Unknown Source)
at com.unity3d.player.UnityPlayer$b.run(Unknown Source)
Any advice?
Edit:
When I used the Play games plugin I also had to add a dependency :
svcSupport.DependOn("com.google.android.gms","play-services-ads",PluginVersion.PlayServicesVersionConstraint);
Perhaps I need manually add a dependency that works for analytics?
Welp adding
svcSupport.DependOn("com.google.android.gms","play-services-analytics",PluginVersion.PlayServicesVersionConstraint);
Sorry for the false alarm