{"action":"opened","issue":{"url":"https://api.github.com/repos/square/leakcanary/issues/1084","repository_url":"https://api.github.com/repos/square/leakcanary","labels_url":"https://api.github.com/repos/square/leakcanary/issues/1084/labels{/name}","comments_url":"https://api.github.com/repos/square/leakcanary/issues/1084/comments","events_url":"https://api.github.com/repos/square/leakcanary/issues/1084/events","html_url":"https://github.com/square/leakcanary/issues/1084","id":348563728,"node_id":"MDU6SXNzdWUzNDg1NjM3Mjg=","number":1084,"title":"No static method startForegroundService","user":{"login":"xiaolvzi","id":20474354,"node_id":"MDQ6VXNlcjIwNDc0MzU0","avatar_url":"https://avatars0.githubusercontent.com/u/20474354?v=4","gravatar_id":"","url":"https://api.github.com/users/xiaolvzi","html_url":"https://github.com/xiaolvzi","followers_url":"https://api.github.com/users/xiaolvzi/followers","following_url":"https://api.github.com/users/xiaolvzi/following{/other_user}","gists_url":"https://api.github.com/users/xiaolvzi/gists{/gist_id}","starred_url":"https://api.github.com/users/xiaolvzi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xiaolvzi/subscriptions","organizations_url":"https://api.github.com/users/xiaolvzi/orgs","repos_url":"https://api.github.com/users/xiaolvzi/repos","events_url":"https://api.github.com/users/xiaolvzi/events{/privacy}","received_events_url":"https://api.github.com/users/xiaolvzi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-08-08T03:40:13Z","updated_at":"2018-08-08T03:40:13Z","closed_at":null,"author_association":"NONE","body":"Hello, below is the error log:\r\n\r\n`08-08 11:33:26.681 17300-17321/com.pandaabc.stu E/AndroidRuntime: FATAL EXCEPTION: LeakCanary-Heap-Dump\r\n    Process: com.pandaabc.stu, PID: 17300\r\n    java.lang.NoSuchMethodError: No static method startForegroundService(Landroid/content/Context;Landroid/content/Intent;)V in class Landroid/support/v4/content/ContextCompat; or its super classes (declaration of 'android.support.v4.content.ContextCompat' appears in /data/app/com.pandaabc.stu-1/split_lib_dependencies_apk.apk)\r\n        at com.squareup.leakcanary.internal.HeapAnalyzerService.runAnalysis(HeapAnalyzerService.java:49)\r\n        at com.squareup.leakcanary.ServiceHeapDumpListener.analyze(ServiceHeapDumpListener.java:36)\r\n        at com.squareup.leakcanary.RefWatcher.ensureGone(RefWatcher.java:156)\r\n        at com.squareup.leakcanary.RefWatcher$1.run(RefWatcher.java:117)\r\n        at com.squareup.leakcanary.AndroidWatchExecutor$3.run(AndroidWatchExecutor.java:79)\r\n        at android.os.Handler.handleCallback(Handler.java:739)\r\n        at android.os.Handler.dispatchMessage(Handler.java:95)\r\n        at android.os.Looper.loop(Looper.java:135)\r\n        at android.os.HandlerThread.run(HandlerThread.java:61)`\r\n\r\nThis error crashed my app.\r\n\r\n\r\nI did this :\r\n\r\n    //leakcanary\r\n    debugImplementation ('com.squareup.leakcanary:leakcanary-android:1.6.1'){\r\n        exclude group: 'com.android.support'\r\n\r\n    }\r\n    releaseImplementation ('com.squareup.leakcanary:leakcanary-android-no-op:1.6.1'){\r\n        exclude group: 'com.android.support'\r\n\r\n    }\r\n\r\nBecause there is some error in Manifest when I add the leakcanary dependency, I can't build sucessfully, so I exclude the `com.android.support`, below is the manifest merger error :\r\n\r\n`Manifest merger failed : Attribute meta-data#android.support.VERSION@value value=(25.4.0) from [com.android.support:preference-v7:25.4.0] AndroidManifest.xml:25:13-35`"}}
{"actor":{"display_login":"xiaolvzi"}}