{"action":"created","issue":{"url":"https://api.github.com/repos/evernote/android-job/issues/487","repository_url":"https://api.github.com/repos/evernote/android-job","labels_url":"https://api.github.com/repos/evernote/android-job/issues/487/labels{/name}","comments_url":"https://api.github.com/repos/evernote/android-job/issues/487/comments","events_url":"https://api.github.com/repos/evernote/android-job/issues/487/events","html_url":"https://github.com/evernote/android-job/issues/487","id":336124513,"node_id":"MDU6SXNzdWUzMzYxMjQ1MTM=","number":487,"title":"Rejecting re-init on previously-failed class java.lang.Class<com.evernote.android.job.gcm.PlatformGcmService>","user":{"login":"softworkz","id":4985349,"node_id":"MDQ6VXNlcjQ5ODUzNDk=","avatar_url":"https://avatars1.githubusercontent.com/u/4985349?v=4","gravatar_id":"","url":"https://api.github.com/users/softworkz","html_url":"https://github.com/softworkz","followers_url":"https://api.github.com/users/softworkz/followers","following_url":"https://api.github.com/users/softworkz/following{/other_user}","gists_url":"https://api.github.com/users/softworkz/gists{/gist_id}","starred_url":"https://api.github.com/users/softworkz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/softworkz/subscriptions","organizations_url":"https://api.github.com/users/softworkz/orgs","repos_url":"https://api.github.com/users/softworkz/repos","events_url":"https://api.github.com/users/softworkz/events{/privacy}","received_events_url":"https://api.github.com/users/softworkz/received_events","type":"User","site_admin":false},"labels":[{"id":250670178,"node_id":"MDU6TGFiZWwyNTA2NzAxNzg=","url":"https://api.github.com/repos/evernote/android-job/labels/bug","name":"bug","color":"fc2929","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":22,"created_at":"2018-06-27T08:21:17Z","updated_at":"2018-07-21T00:18:21Z","closed_at":"2018-07-21T00:18:21Z","author_association":"NONE","body":"I know that this is not the first post of its kind, and while not all issues that may look similar are caused by the same bug in the code, there should be some at least.\r\n\r\nSymptoms in this specific case:\r\n\r\n```\r\nRejecting re-init on previously-failed class java.lang.Class<com.evernote.android.job.gcm.PlatformGcmService>: java.lang.NoClassDefFoundError: Failed resolution of: Lcom/google/android/gms/gcm/GcmTaskService;\r\n    at boolean com.evernote.android.job.GcmAvailableHelper.isGcmApiSupported(android.content.Context) (GcmAvailableHelper.java:-1)\r\n    at boolean com.evernote.android.job.JobApi.isSupported(android.content.Context) (JobApi.java:115)\r\n    at void com.evernote.android.job.JobProxy$Common.cleanUpOrphanedJob(android.content.Context, int) (JobProxy.java:286)\r\n    at void com.evernote.android.job.JobManager.schedule(com.evernote.android.job.JobRequest) (JobManager.java:176)\r\n    at int com.evernote.android.job.JobRequest.schedule() (JobRequest.java:426)\r\n    at void com.evernote.android.job.JobRequest$2.run() (JobRequest.java:455)\r\n    at void java.util.concurrent.ThreadPoolExecutor.runWorker(java.util.concurrent.ThreadPoolExecutor$Worker) (ThreadPoolExecutor.java:1162)\r\n    at void java.util.concurrent.ThreadPoolExecutor$Worker.run() (ThreadPoolExecutor.java:636)\r\n    at void java.lang.Thread.run() (Thread.java:764)\r\nCaused by: java.lang.ClassNotFoundException: Didn't find class \"com.google.android.gms.gcm.GcmTaskService\" on path: DexPathList[[zip file ...\r\n    at java.lang.Class dalvik.system.BaseDexClassLoader.findClass(java.lang.String) (BaseDexClassLoader.java:125)\r\n    at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String, boolean) (ClassLoader.java:379)\r\n    at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String) (ClassLoader.java:312)\r\n    at boolean com.evernote.android.job.GcmAvailableHelper.isGcmApiSupported(android.content.Context) (GcmAvailableHelper.java:-1)\r\n    at boolean com.evernote.android.job.JobApi.isSupported(android.content.Context) (JobApi.java:115)\r\n    at void com.evernote.android.job.JobProxy$Common.cleanUpOrphanedJob(android.content.Context, int) (JobProxy.java:286)\r\n    at void com.evernote.android.job.JobManager.schedule(com.evernote.android.job.JobRequest) (JobManager.java:176)\r\n    at int com.evernote.android.job.JobRequest.schedule() (JobRequest.java:426)\r\n    at void com.evernote.android.job.JobRequest$2.run() (JobRequest.java:455)\r\n    at void java.util.concurrent.ThreadPoolExecutor.runWorker(java.util.concurrent.ThreadPoolExecutor$Worker) (ThreadPoolExecutor.java:1162)\r\n    at void java.util.concurrent.ThreadPoolExecutor$Worker.run() (ThreadPoolExecutor.java:636)\r\n    at void java.lang.Thread.run() (Thread.java:764)\r\nRejecting re-init on previously-failed class java.lang.Class<com.evernote.android.job.gcm.PlatformGcmService>: java.lang.NoClassDefFoundError: Failed resolution of: Lcom/google/android/gms/gcm/GcmTaskService;\r\n    at boolean com.evernote.android.job.GcmAvailableHelper.isGcmApiSupported(android.content.Context) (GcmAvailableHelper.java:-1)\r\n    at boolean com.evernote.android.job.JobApi.isSupported(android.content.Context) (JobApi.java:115)\r\n    at void com.evernote.android.job.JobProxy$Common.cleanUpOrphanedJob(android.content.Context, int) (JobProxy.java:286)\r\n    at void com.evernote.android.job.JobManager.schedule(com.evernote.android.job.JobRequest) (JobManager.java:176)\r\n    at int com.evernote.android.job.JobRequest.schedule() (JobRequest.java:426)\r\n    at void com.evernote.android.job.JobRequest$2.run() (JobRequest.java:455)\r\n    at void java.util.concurrent.ThreadPoolExecutor.runWorker(java.util.concurrent.ThreadPoolExecutor$Worker) (ThreadPoolExecutor.java:1162)\r\n    at void java.util.concurrent.ThreadPoolExecutor$Worker.run() (ThreadPoolExecutor.java:636)\r\n    at void java.lang.Thread.run() (Thread.java:764)\r\nCaused by: java.lang.ClassNotFoundException: Didn't find class \"com.google.android.gms.gcm.GcmTaskService\" on path: DexPathList[[zip file ...\r\n    at java.lang.Class dalvik.system.BaseDexClassLoader.findClass(java.lang.String) (BaseDexClassLoader.java:125)\r\n    at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String, boolean) (ClassLoader.java:379)\r\n    at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String) (ClassLoader.java:312)\r\n    at boolean com.evernote.android.job.GcmAvailableHelper.isGcmApiSupported(android.content.Context) (GcmAvailableHelper.java:-1)\r\n    at boolean com.evernote.android.job.JobApi.isSupported(android.content.Context) (JobApi.java:115)\r\n    at void com.evernote.android.job.JobProxy$Common.cleanUpOrphanedJob(android.content.Context, int) (JobProxy.java:286)\r\n    at void com.evernote.android.job.JobManager.schedule(com.evernote.android.job.JobRequest) (JobManager.java:176)\r\n    at int com.evernote.android.job.JobRequest.schedule() (JobRequest.java:426)\r\n    at void com.evernote.android.job.JobRequest$2.run() (JobRequest.java:455)\r\n    at void java.util.concurrent.ThreadPoolExecutor.runWorker(java.util.concurrent.ThreadPoolExecutor$Worker) (ThreadPoolExecutor.java:1162)\r\n    at void java.util.concurrent.ThreadPoolExecutor$Worker.run() (ThreadPoolExecutor.java:636)\r\n    at void java.lang.Thread.run() (Thread.java:764)\r\n\r\n```\r\n\r\nPrerequisites: I don't have GCM included and I don't want it."},"comment":{"url":"https://api.github.com/repos/evernote/android-job/issues/comments/406756000","html_url":"https://github.com/evernote/android-job/issues/487#issuecomment-406756000","issue_url":"https://api.github.com/repos/evernote/android-job/issues/487","id":406756000,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNjc1NjAwMA==","user":{"login":"vRallev","id":1558045,"node_id":"MDQ6VXNlcjE1NTgwNDU=","avatar_url":"https://avatars3.githubusercontent.com/u/1558045?v=4","gravatar_id":"","url":"https://api.github.com/users/vRallev","html_url":"https://github.com/vRallev","followers_url":"https://api.github.com/users/vRallev/followers","following_url":"https://api.github.com/users/vRallev/following{/other_user}","gists_url":"https://api.github.com/users/vRallev/gists{/gist_id}","starred_url":"https://api.github.com/users/vRallev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vRallev/subscriptions","organizations_url":"https://api.github.com/users/vRallev/orgs","repos_url":"https://api.github.com/users/vRallev/repos","events_url":"https://api.github.com/users/vRallev/events{/privacy}","received_events_url":"https://api.github.com/users/vRallev/received_events","type":"User","site_admin":false},"created_at":"2018-07-21T00:18:21Z","updated_at":"2018-07-21T00:18:21Z","author_association":"CONTRIBUTOR","body":"I've published a new release `1.3.0-alpha04`. Please let me know if this issue is fixed there. I appreciate all the help."}}
{"actor":{"display_login":"vRallev"}}