{"action":"created","issue":{"url":"https://api.github.com/repos/gotev/android-upload-service/issues/309","repository_url":"https://api.github.com/repos/gotev/android-upload-service","labels_url":"https://api.github.com/repos/gotev/android-upload-service/issues/309/labels{/name}","comments_url":"https://api.github.com/repos/gotev/android-upload-service/issues/309/comments","events_url":"https://api.github.com/repos/gotev/android-upload-service/issues/309/events","html_url":"https://github.com/gotev/android-upload-service/issues/309","id":251950014,"number":309,"title":"UploadNotificationConfig leads to NullPointerException","user":{"login":"meparam","id":7446345,"avatar_url":"https://avatars2.githubusercontent.com/u/7446345?v=4","gravatar_id":"","url":"https://api.github.com/users/meparam","html_url":"https://github.com/meparam","followers_url":"https://api.github.com/users/meparam/followers","following_url":"https://api.github.com/users/meparam/following{/other_user}","gists_url":"https://api.github.com/users/meparam/gists{/gist_id}","starred_url":"https://api.github.com/users/meparam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/meparam/subscriptions","organizations_url":"https://api.github.com/users/meparam/orgs","repos_url":"https://api.github.com/users/meparam/repos","events_url":"https://api.github.com/users/meparam/events{/privacy}","received_events_url":"https://api.github.com/users/meparam/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-08-22T13:05:29Z","updated_at":"2017-08-23T07:00:09Z","closed_at":null,"body":"### What did you expect?\r\nI  want to display the notification when uploading the files.\r\n\r\n### What happened instead?\r\nwhen I build a MultipartUploadRequest  then  UploadNotificationConfig  leads to crash \r\n### Version info\r\n* Android Upload Service version:3.4\r\n* Android version and API version:\r\n* HTTP stack (e.g. HurlStack or OkHttpStack):\r\n\r\n// the code you wrote to create the upload request\r\n``` new MultipartUploadRequest(this, \"http://posttestserver.com/post.php\")\r\n                            // starting from 3.1+, you can also use content:// URI string instead of absolute file\r\n                            .addFileToUpload(getFile().toString(), \"param-name\")\r\n                            .setNotificationConfig(new UploadNotificationConfig())\r\n                            .setMaxRetries(2)\r\n                            .addHeader(\"param\",\"hello\")\r\n                            .addParameter(\"name\",\"paramvir singh\")\r\n                            .setDelegate(new UploadStatusDelegate().setAutoDeleteFilesAfterSuccessfulUpload(true)\r\n                    .addParameter(\"color\", \"#ffffff\").\r\n                    .setMaxRetries(2)\r\n                    .startUpload();\r\n#### Where have you added the request code?\r\n- [ ] Activity\r\n- [ ] Service\r\n- [ ] Other class (add additional info about it)\r\n\r\n### LogCat output (please [set log level to DEBUG](https://github.com/gotev/android-upload-service/wiki/Recipes#logging-) first)\r\n`\r\n// your LogCat output here\r\njava.lang.NoSuchMethodError: android.support.v4.app.NotificationCompat$Builder.<init>\r\n                                                                                     at net.gotev.uploadservice.UploadTask.createNotification(UploadTask.java:451)\r\n                                                                                     at net.gotev.uploadservice.UploadTask.run(UploadTask.java:144)\r\n                                                                                     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)\r\n                                                                                     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)\r\n                                                                                     at java.lang.Thread.run(Thread.java:841)\r\n\r\n### Server side\r\nWhich server did you use (e.g. node.js demo server provided in the examples, php script provided in the examples, own implementation)?\r\n\r\n```\r\n// your server side script (if applicable)\r\n// do not write any passwords or personal data here.\r\n// If you need to show some code, replace sensible values\r\n```\r\n\r\n#### Server log (if applicable)\r\n```\r\n// your server side log here\r\n```\r\n\r\n### Additional info\r\nWrite some additional information about the error here. Upload also screenshots or other information which may help to reproduce your error or spot a possible bug. Thank you :)\r\n"},"comment":{"url":"https://api.github.com/repos/gotev/android-upload-service/issues/comments/324239722","html_url":"https://github.com/gotev/android-upload-service/issues/309#issuecomment-324239722","issue_url":"https://api.github.com/repos/gotev/android-upload-service/issues/309","id":324239722,"user":{"login":"gotev","id":16792495,"avatar_url":"https://avatars0.githubusercontent.com/u/16792495?v=4","gravatar_id":"","url":"https://api.github.com/users/gotev","html_url":"https://github.com/gotev","followers_url":"https://api.github.com/users/gotev/followers","following_url":"https://api.github.com/users/gotev/following{/other_user}","gists_url":"https://api.github.com/users/gotev/gists{/gist_id}","starred_url":"https://api.github.com/users/gotev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gotev/subscriptions","organizations_url":"https://api.github.com/users/gotev/orgs","repos_url":"https://api.github.com/users/gotev/repos","events_url":"https://api.github.com/users/gotev/events{/privacy}","received_events_url":"https://api.github.com/users/gotev/received_events","type":"User","site_admin":false},"created_at":"2017-08-23T07:00:09Z","updated_at":"2017-08-23T07:00:09Z","body":"change targetSdkVersion to 26"}}
{"actor":{"display_login":"gotev"}}