java.lang.VerifyError: com.google.analytics.tracking.android.AppFieldsDefaultProvider

‹ java.lang.IllegalStateException: attempt to acquire a reference on a close SQLiteClosable | Query the COUNT of rows in a SQLite table in Android ›

The Google Analytics SDK for Android v3 (Beta) does not support Android 1.5 (API version 3).  When you try to call EasyTracker.getInstance(this).activityStart(this); you will get this error:

java.lang.VerifyError: com.google.analytics.tracking.android.AppFieldsDefaultProvider
    at com.google.analytics.tracking.android.GoogleAnalytics.(GoogleAnalytics.java:58)
    at com.google.analytics.tracking.android.GoogleAnalytics.(GoogleAnalytics.java:48)
    at com.google.analytics.tracking.android.GoogleAnalytics.getInstance(GoogleAnalytics.java:73)
    at com.google.analytics.tracking.android.EasyTracker.(EasyTracker.java:94)
    at com.google.analytics.tracking.android.EasyTracker.getInstance(EasyTracker.java:131)
    at com.wtanaka.MyActivity.onStart(MyActivity.java:231)
    at android.app.Instrumentation.callActivityOnStart(Instrumentation.java:1205)
    at android.app.Activity.performStart(Activity.java:3490)
    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2240)
    at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2284)
    at android.app.ActivityThread.access$1800(ActivityThread.java:112)
    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1692)
    at android.os.Handler.dispatchMessage(Handler.java:99)
    at android.os.Looper.loop(Looper.java:123)
    at android.app.ActivityThread.main(ActivityThread.java:3948)
    at java.lang.reflect.Method.invokeNative(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:521)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:782)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:540)
    at dalvik.system.NativeStart.main(Native Method)

java.lang.VerifyError: com/google/analytics/tracking/android/AppFieldsDefaultProvider
    at com.google.analytics.tracking.android.GoogleAnalytics.(GoogleAnalytics.java:58)
    at com.google.analytics.tracking.android.GoogleAnalytics.(GoogleAnalytics.java:48)
    at com.google.analytics.tracking.android.GoogleAnalytics.getInstance(GoogleAnalytics.java:73)
    at com.google.analytics.tracking.android.GAServiceProxy.(GAServiceProxy.java:90)
    at com.google.analytics.tracking.android.GAThread.run(GAThread.java:350)

Google Analytics SDK for Android v2 (Beta) has a similar error:

java.lang.VerifyError: com.google.analytics.tracking.android.GAThread
    at com.google.analytics.tracking.android.GoogleAnalytics.(GoogleAnalytics.java:56)
    at com.google.analytics.tracking.android.GoogleAnalytics.getInstance(GoogleAnalytics.java:92)
    at com.google.analytics.tracking.android.EasyTracker.setContext(EasyTracker.java:308)
    at com.google.analytics.tracking.android.EasyTracker.activityStart(EasyTracker.java:344)
    at com.wtanaka.MyActivity.onStart(MyActivity.java:234)
    at android.app.Instrumentation.callActivityOnStart(Instrumentation.java:1205)
    at android.app.Activity.performStart(Activity.java:3490)
    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2240)
    at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2284)
    at android.app.ActivityThread.access$1800(ActivityThread.java:112)
    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1692)
    at android.os.Handler.dispatchMessage(Handler.java:99)
    at android.os.Looper.loop(Looper.java:123)
    at android.app.ActivityThread.main(ActivityThread.java:3948)
    at java.lang.reflect.Method.invokeNative(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:521)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:782)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:540)
    at dalvik.system.NativeStart.main(Native Method)

Subscribe to All Posts - Wesley Tanaka