{ "id": "170249", "key": "TIMOB-25488", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [], "resolution": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2017-11-08T20:54:09.000+0000", "created": "2017-11-07T23:12:24.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [], "versions": [ { "id": "19542", "description": "", "name": "Release 6.2.2", "archived": false, "released": true, "releaseDate": "2017-09-19" } ], "issuelinks": [], "assignee": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2018-08-06T17:36:59.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [], "description": "Hello,\r\n\r\nI am trying to get the Android deviceId using Ti.cloudpush, but my app is crashing. This just started happening recently. My QA team believes this is the first time they are seeing the issue. \r\n\r\nRun a simple app with the following code. App will crash with error message below. \r\n\r\nvar CloudPush = require('ti.cloudpush');\r\n// Initialize the module\r\nCloudPush.retrieveDeviceToken({\r\n\tsuccess : deviceTokenSuccess,\r\n\terror : deviceTokenError\r\n});\r\n\r\nseems to be crashing on retrieveDeviceToken -- if you comment out the callbacks it will still crash.\r\n\r\nERROR:\r\n\r\n[ERROR] : TiApplication: (main) [5,230] Sending event: exception on thread: main msg:java.lang.NoClassDefFoundError: Failed resolution of: Lcom/google/android/gms/common/GooglePlayServicesUtil;; Titanium 6.2.2,2017/09/19 16:01,undefined\r\n[ERROR] : TiApplication: java.lang.NoClassDefFoundError: Failed resolution of: Lcom/google/android/gms/common/GooglePlayServicesUtil;\r\n[ERROR] : TiApplication: \tat com.appcelerator.aps.CCPushService.getPushType(CCPushService.java:63)\r\n[ERROR] : TiApplication: \tat com.appcelerator.aps.CCPushService.ifEnabled(CCPushService.java:250)\r\n[ERROR] : TiApplication: \tat com.appcelerator.aps.PushBroadcastReceiver.onReceive(PushBroadcastReceiver.java:59)\r\n[ERROR] : TiApplication: \tat android.app.ActivityThread.handleReceiver(ActivityThread.java:3043)\r\n[ERROR] : TiApplication: \tat android.app.ActivityThread.-wrap18(ActivityThread.java)\r\n[ERROR] : TiApplication: \tat android.app.ActivityThread$H.handleMessage(ActivityThread.java:1561)\r\n[ERROR] : TiApplication: \tat android.os.Handler.dispatchMessage(Handler.java:102)\r\n[ERROR] : TiApplication: \tat android.os.Looper.loop(Looper.java:154)\r\n[ERROR] : TiApplication: \tat android.app.ActivityThread.main(ActivityThread.java:6131)\r\n[ERROR] : TiApplication: \tat java.lang.reflect.Method.invoke(Native Method)\r\n[ERROR] : TiApplication: \tat com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:886)\r\n[ERROR] : TiApplication: \tat com.android.internal.os.ZygoteInit.main(ZygoteInit.java:776)\r\n[ERROR] : TiApplication: Caused by: java.lang.ClassNotFoundException: com.google.android.gms.common.GooglePlayServicesUtil\r\n[ERROR] : TiApplication: \tat java.lang.VMClassLoader.findLoadedClass(Native Method)\r\n[ERROR] : TiApplication: \tat java.lang.ClassLoader.findLoadedClass(ClassLoader.java:742)\r\n[ERROR] : TiApplication: \tat java.lang.ClassLoader.loadClass(ClassLoader.java:362)\r\n[ERROR] : TiApplication: \tat java.lang.ClassLoader.loadClass(ClassLoader.java:312)\r\n[ERROR] : TiApplication: \t... 12 more\r\n[ERROR] : TiApplication: Caused by: java.lang.NoClassDefFoundError: Failed resolution of: Lcom/google/android/gms/common/zzg;\r\n[ERROR] : TiApplication: \t... 12 more\r\n[ERROR] : TiApplication: Caused by: java.lang.ClassNotFoundException: Didn't find class \"com.google.android.gms.common.zzg\" on path: DexPathList[[zip file \"/data/app/com.test-1/base.apk\"],nativeLibraryDirectories=[/data/app/com.test-1/lib/arm, /data/app/com.test-1/base.apk!/lib/armeabi-v7a, /system/lib, /vendor/lib]]\r\n[ERROR] : TiApplication: \tat dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)\r\n[ERROR] : TiApplication: \tat java.lang.ClassLoader.loadClass(ClassLoader.java:380)\r\n[ERROR] : TiApplication: \tat java.lang.ClassLoader.loadClass(ClassLoader.java:312)\r\n[ERROR] : TiApplication: \t... 12 more", "attachment": [], "flagged": false, "summary": "Error with Ti.Cloudpush Android", "creator": { "name": "eric.harms@gmail.com", "key": "eric.harms@gmail.com", "displayName": "eric harms", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "eric.harms@gmail.com", "key": "eric.harms@gmail.com", "displayName": "eric harms", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "APPC SDK 6.2.2.GA\r\nAndroid Essential Device w/Android 7.1.1 or simulator\r\nTi.cloudpush 4.0.3 / Studio 4.10.0.201709271713", "closedSprints": [ { "id": 968, "state": "closed", "name": "2017 Sprint 23 SDK", "startDate": "2017-11-05T16:37:25.071Z", "endDate": "2017-11-19T16:37:00.000Z", "completeDate": "2017-11-20T18:57:56.565Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "430273", "author": { "name": "mrahman", "key": "mrahman", "displayName": "Mostafizur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "body": "Hello [~eric.harms@gmail.com],\r\n\r\nThanks for sharing with us. Can you please test in latest SDK and let us know how it goes.\r\n\r\n\r\nBest", "updateAuthor": { "name": "mrahman", "key": "mrahman", "displayName": "Mostafizur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "created": "2017-11-08T04:36:14.000+0000", "updated": "2017-11-08T04:36:14.000+0000" }, { "id": "430312", "author": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This will be fixed by {{4.0.4}} with the use of {{ti.playservices}}", "updateAuthor": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-11-08T20:53:48.000+0000", "updated": "2017-11-08T20:53:48.000+0000" }, { "id": "430313", "author": { "name": "eric.harms@gmail.com", "key": "eric.harms@gmail.com", "displayName": "eric harms", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Thanks Gary -- is that available in SDK 6.3.0, or is it scheduled for the next release?", "updateAuthor": { "name": "eric.harms@gmail.com", "key": "eric.harms@gmail.com", "displayName": "eric harms", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-11-08T20:55:32.000+0000", "updated": "2017-11-08T20:55:32.000+0000" }, { "id": "430314", "author": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~eric.harms@gmail.com] next release", "updateAuthor": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-11-08T20:59:14.000+0000", "updated": "2017-11-08T20:59:14.000+0000" }, { "id": "439902", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing as invalid. If incorrect, please reopen.", "updateAuthor": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-08-06T17:36:59.000+0000", "updated": "2018-08-06T17:36:59.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }