Fabrice La Active Member Licensed User Longtime User Nov 23, 2013 #1 I have 2 errors using Google Analytics : Following the Google Analytics v2 library I did - Download GoogleAnalyticsAndroid.zip - Unzip it and copy libGoogleAnalyticsV2.jar to the libraries folder. - Unzip the attached library and copy it to the libraries folder. - Create a Mobile App Analytics account - create a file with the following text named analytics.xml and put it under Objects\res\values Read Only - declare an AnalyticsTracker on activity and call tracker.Start in Activity_Resume and tracker.Stop in Activity_Pause call the sub before calling tracker.TrackEvent() 1st Error : - During Compiling this message "A referenced library is missing: libgoogleanalyticsv2" If I change the name of lib libGoogleAnalyticsServices.lib to libgoogleanalyticsv2.lib 2nd error: main_activity_resume (java line: 489) java.lang.NoSuchMethodError: com.google.analytics.tracking.android.EasyTracker.getInstance at anywheresoftware.b4a.objects.AnalyticsTracker.Start(AnalyticsTracker.java:38) at flcc.PlongeeLog.main._activity_resume(main.java:489) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:525) at anywheresoftware.b4a.BA.raiseEvent2(BA.java:170) at anywheresoftware.b4a.BA.raiseEvent(BA.java:154) at flcc.PlongeeLog.main.afterFirstLayout(main.java:104) at flcc.PlongeeLog.main.access$100(main.java:16) at flcc.PlongeeLog.main$WaitForLayout.run(main.java:76) at android.os.Handler.handleCallback(Handler.java:730) at android.os.Handler.dispatchMessage(Handler.java:92) at android.os.Looper.loop(Looper.java:137) at android.app.ActivityThread.main(ActivityThread.java:5289) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:525) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:739) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:555) at dalvik.system.NativeStart.main(Native Method)
I have 2 errors using Google Analytics : Following the Google Analytics v2 library I did - Download GoogleAnalyticsAndroid.zip - Unzip it and copy libGoogleAnalyticsV2.jar to the libraries folder. - Unzip the attached library and copy it to the libraries folder. - Create a Mobile App Analytics account - create a file with the following text named analytics.xml and put it under Objects\res\values Read Only - declare an AnalyticsTracker on activity and call tracker.Start in Activity_Resume and tracker.Stop in Activity_Pause call the sub before calling tracker.TrackEvent() 1st Error : - During Compiling this message "A referenced library is missing: libgoogleanalyticsv2" If I change the name of lib libGoogleAnalyticsServices.lib to libgoogleanalyticsv2.lib 2nd error: main_activity_resume (java line: 489) java.lang.NoSuchMethodError: com.google.analytics.tracking.android.EasyTracker.getInstance at anywheresoftware.b4a.objects.AnalyticsTracker.Start(AnalyticsTracker.java:38) at flcc.PlongeeLog.main._activity_resume(main.java:489) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:525) at anywheresoftware.b4a.BA.raiseEvent2(BA.java:170) at anywheresoftware.b4a.BA.raiseEvent(BA.java:154) at flcc.PlongeeLog.main.afterFirstLayout(main.java:104) at flcc.PlongeeLog.main.access$100(main.java:16) at flcc.PlongeeLog.main$WaitForLayout.run(main.java:76) at android.os.Handler.handleCallback(Handler.java:730) at android.os.Handler.dispatchMessage(Handler.java:92) at android.os.Looper.loop(Looper.java:137) at android.app.ActivityThread.main(ActivityThread.java:5289) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:525) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:739) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:555) at dalvik.system.NativeStart.main(Native Method)
Erel B4X founder Staff member Licensed User Longtime User Nov 24, 2013 #2 Have you downloaded Analytics SDK v2.00? (second one). https://developers.google.com/analytics/devguides/collection/android/resources Upvote 0
Have you downloaded Analytics SDK v2.00? (second one). https://developers.google.com/analytics/devguides/collection/android/resources
Ratna Fang Member Licensed User Longtime User Jan 19, 2014 #3 yes erel. i got the same error. i've download everything in libraries folder. and also i've downloaded from the same link you mentioned above. it's v.3.0.1. i got libGoogleAnalyticsService.jar and i put the jar in the libraries also and still error when compiling. i declare Tracker in every activity (in global), then i put Tracker.Start in every Activity_Resume, and Tracker.Stop in every Activity_Pause. did i miss something to do? thanks Upvote 0
yes erel. i got the same error. i've download everything in libraries folder. and also i've downloaded from the same link you mentioned above. it's v.3.0.1. i got libGoogleAnalyticsService.jar and i put the jar in the libraries also and still error when compiling. i declare Tracker in every activity (in global), then i put Tracker.Start in every Activity_Resume, and Tracker.Stop in every Activity_Pause. did i miss something to do? thanks
Erel B4X founder Staff member Licensed User Longtime User Jan 19, 2014 #4 I will update the wrapper to support the new version in the next couple of days. Upvote 0
Ratna Fang Member Licensed User Longtime User Jan 19, 2014 #5 many thanks, erel awaiting the update Upvote 0