Android Question FireBase & the old analyticsv4 lib?

aidymp

Well-Known Member
Licensed User
Longtime User
Hi

Can you use the old analyticsv4 lib and firebase?

I updated everything to use firebase, but the analytics is not very good (currently) I prefere the old google analytics as its in realtime, but i also like the push notification and crash reporting feature of firebase!

Can I have both?

I have tried but get an error initialling the tracker on the analytics lib.

Thanks

Aidy
 

aidymp

Well-Known Member
Licensed User
Longtime User
Which error?

Sorry I should know better! - i belive its due to updating playservices, to use firebase and the old playservices.jar being wrong. but how can i solve?

main_activity_create (java line: 586)
java.lang.NoClassDefFoundError: Failed resolution of: Lcom/google/android/gms/analytics/GoogleAnalytics;
at anywheresoftware.b4a.objects.AnalyticsTracker.Initialize(AnalyticsTracker.java:32)
at com.aidymp.aidymatic.main._activity_create(main.java:586)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:169)
at com.aidymp.aidymatic.main.afterFirstLayout(main.java:108)
at com.aidymp.aidymatic.main.access$000(main.java:23)
at com.aidymp.aidymatic.main$WaitForLayout.run(main.java:86)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5254)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698)
Caused by: java.lang.ClassNotFoundException: Didn't find class "com.google.android.gms.analytics.GoogleAnalytics" on path: DexPathList[[zip file "/data/app/com.aidymp.aidymatic-2/base.apk"],nativeLibraryDirectories=[/vendor/lib, /system/lib]]
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
at java.lang.ClassLoader.loadClass(ClassLoader.java:511)
at java.lang.ClassLoader.loadClass(ClassLoader.java:469)
... 16 more


Thanks

Aidy
 
Upvote 0

JohnC

Expert
Licensed User
Longtime User
Curious, is there some reason/feature of the old google analytics that firebase doesn't offer?
 
Upvote 0
Top