BY DOWNLOADING, INSTALLING, COPYING, ACCESSING, CLICKING ON AN “ACCEPT” BUTTON, OR OTHERWISE USING THE PROGRAM, LICENSEE AGREES TO THE TERMS OF THIS AGREEMENT.
Was trying to configure SDK for Geofence as per documentation here. When location support was enabled, the app crashes and getting the following exception
Caused by: java.lang.ClassCastException: java.lang.Class cannot be cast to java.lang.reflect.ParameterizedType at com.ibm.mce.sdk.util.db.DatabaseHelper.getClassAccess(Unknown Source) at com.ibm.mce.sdk.location.cognitive.CognitiveLocationDatabaseHelper.getCustomLocationAccess(Unknown Source) at com.ibm.mce.sdk.location.cognitive.CognitiveLocationManager.reportDeviceLocation(Unknown Source) at com.ibm.mce.sdk.location.LocationManager.registerNearbyLocations(Unknown Source) at com.ibm.mce.sdk.location.LocationRetrieveService$LocationUpdateReceiver.updateLocation(Unknown Source) at com.ibm.mce.sdk.location.LocationRetrieveService$LocationUpdateReceiver.flushProviderLocationTracker(Unknown Source) at com.ibm.mce.sdk.location.LocationRetrieveService$LocationUpdateReceiver.access$000(Unknown Source) at com.ibm.mce.sdk.location.LocationRetrieveService$LocationUpdateReceiver$2.run(Unknown Source) at android.os.Handler.handleCallback(Handler.java:739) at android.os.Handler.dispatchMessage(Handler.java:95) at android.os.Looper.loop(Looper.java:158) at android.app.ActivityThread.main(ActivityThread.java:7225) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)
Was trying to configure SDK for Geofence as per documentation here. When location support was enabled, the app crashes and getting the following exception
Caused by: java.lang.ClassCastException: java.lang.Class cannot be cast to java.lang.reflect.ParameterizedType at com.ibm.mce.sdk.util.db.DatabaseHelper.getClassAccess(Unknown Source) at com.ibm.mce.sdk.location.cognitive.CognitiveLocationDatabaseHelper.getCustomLocationAccess(Unknown Source) at com.ibm.mce.sdk.location.cognitive.CognitiveLocationManager.reportDeviceLocation(Unknown Source) at com.ibm.mce.sdk.location.LocationManager.registerNearbyLocations(Unknown Source) at com.ibm.mce.sdk.location.LocationRetrieveService$LocationUpdateReceiver.updateLocation(Unknown Source) at com.ibm.mce.sdk.location.LocationRetrieveService$LocationUpdateReceiver.flushProviderLocationTracker(Unknown Source) at com.ibm.mce.sdk.location.LocationRetrieveService$LocationUpdateReceiver.access$000(Unknown Source) at com.ibm.mce.sdk.location.LocationRetrieveService$LocationUpdateReceiver$2.run(Unknown Source) at android.os.Handler.handleCallback(Handler.java:739) at android.os.Handler.dispatchMessage(Handler.java:95) at android.os.Looper.loop(Looper.java:158) at android.app.ActivityThread.main(ActivityThread.java:7225) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)