{"action":"created","issue":{"url":"https://api.github.com/repos/jpush/jpush-react-native/issues/185","repository_url":"https://api.github.com/repos/jpush/jpush-react-native","labels_url":"https://api.github.com/repos/jpush/jpush-react-native/issues/185/labels{/name}","comments_url":"https://api.github.com/repos/jpush/jpush-react-native/issues/185/comments","events_url":"https://api.github.com/repos/jpush/jpush-react-native/issues/185/events","html_url":"https://github.com/jpush/jpush-react-native/issues/185","id":216318444,"number":185,"title":"求解 jpush-react-native:compileReleaseJavaWithJavac FAILED","user":{"login":"HFYEH","id":7251421,"avatar_url":"https://avatars3.githubusercontent.com/u/7251421?v=3","gravatar_id":"","url":"https://api.github.com/users/HFYEH","html_url":"https://github.com/HFYEH","followers_url":"https://api.github.com/users/HFYEH/followers","following_url":"https://api.github.com/users/HFYEH/following{/other_user}","gists_url":"https://api.github.com/users/HFYEH/gists{/gist_id}","starred_url":"https://api.github.com/users/HFYEH/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HFYEH/subscriptions","organizations_url":"https://api.github.com/users/HFYEH/orgs","repos_url":"https://api.github.com/users/HFYEH/repos","events_url":"https://api.github.com/users/HFYEH/events{/privacy}","received_events_url":"https://api.github.com/users/HFYEH/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2017-03-23T06:33:04Z","updated_at":"2017-03-27T03:10:58Z","closed_at":"2017-03-27T03:10:58Z","body":"我依照文檔安裝jpush的android部份，\r\n但在react-naitve run-android後卡在一個地方\r\n```shell\r\n/home/sharefun/apps/dt-driver-app/node_modules/jpush-react-native/android/src/main/java/cn/jpush/reactnativejpush/HeadlessService.java:11: error: package com.facebook.react.jstasks does not exist\r\nimport com.facebook.react.jstasks.HeadlessJsTaskConfig;\r\n                                 ^\r\n/home/sharefun/apps/dt-driver-app/node_modules/jpush-react-native/android/src/main/java/cn/jpush/reactnativejpush/HeadlessService.java:14: error: cannot find symbol\r\npublic class HeadlessService extends HeadlessJsTaskService {\r\n                                     ^\r\n  symbol: class HeadlessJsTaskService\r\n/home/sharefun/apps/dt-driver-app/node_modules/jpush-react-native/android/src/main/java/cn/jpush/reactnativejpush/HeadlessService.java:20: error: cannot find symbol\r\n    HeadlessJsTaskConfig getTaskConfig(Intent intent) {\r\n    ^\r\n  symbol:   class HeadlessJsTaskConfig\r\n  location: class HeadlessService\r\n/home/sharefun/apps/dt-driver-app/node_modules/jpush-react-native/android/src/main/java/cn/jpush/reactnativejpush/JPushModule.java:14: error: cannot find symbol\r\nimport com.facebook.react.HeadlessJsTaskService;\r\n                         ^\r\n  symbol:   class HeadlessJsTaskService\r\n  location: package com.facebook.react\r\n/home/sharefun/apps/dt-driver-app/node_modules/jpush-react-native/android/src/main/java/cn/jpush/reactnativejpush/HeadlessService.java:18: error: method does not override or implement a method from a supertype\r\n    @Override\r\n    ^\r\n/home/sharefun/apps/dt-driver-app/node_modules/jpush-react-native/android/src/main/java/cn/jpush/reactnativejpush/HeadlessService.java:23: error: cannot find symbol\r\n            return new HeadlessJsTaskConfig(\r\n                       ^\r\n  symbol:   class HeadlessJsTaskConfig\r\n  location: class HeadlessService\r\nNote: /home/sharefun/apps/dt-driver-app/node_modules/jpush-react-native/android/src/main/java/cn/jpush/reactnativejpush/JPushModule.java uses or overrides a deprecated API.\r\nNote: Recompile with -Xlint:deprecation for details.\r\n7 errors\r\n:jpush-react-native:compileReleaseJavaWithJavac FAILED\r\n\r\nFAILURE: Build failed with an exception.\r\n\r\n* What went wrong:\r\nExecution failed for task ':jpush-react-native:compileReleaseJavaWithJavac'.\r\n> Compilation failed; see the compiler error output for details.\r\n```\r\n\r\n我有兩個APP，都碰到一樣的問題，RN的版本分別是0.30和0.28，請問有人知道原因和解法嗎？"},"comment":{"url":"https://api.github.com/repos/jpush/jpush-react-native/issues/comments/289343822","html_url":"https://github.com/jpush/jpush-react-native/issues/185#issuecomment-289343822","issue_url":"https://api.github.com/repos/jpush/jpush-react-native/issues/185","id":289343822,"user":{"login":"KenChoi1992","id":8196928,"avatar_url":"https://avatars2.githubusercontent.com/u/8196928?v=3","gravatar_id":"","url":"https://api.github.com/users/KenChoi1992","html_url":"https://github.com/KenChoi1992","followers_url":"https://api.github.com/users/KenChoi1992/followers","following_url":"https://api.github.com/users/KenChoi1992/following{/other_user}","gists_url":"https://api.github.com/users/KenChoi1992/gists{/gist_id}","starred_url":"https://api.github.com/users/KenChoi1992/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KenChoi1992/subscriptions","organizations_url":"https://api.github.com/users/KenChoi1992/orgs","repos_url":"https://api.github.com/users/KenChoi1992/repos","events_url":"https://api.github.com/users/KenChoi1992/events{/privacy}","received_events_url":"https://api.github.com/users/KenChoi1992/received_events","type":"User","site_admin":false},"created_at":"2017-03-27T03:10:58Z","updated_at":"2017-03-27T03:10:58Z","body":"@HFYEH 没什么问题就关闭了。"}}
{"actor":{"display_login":"KenChoi1992"}}