{"action":"created","issue":{"url":"https://api.github.com/repos/nostra13/Android-Universal-Image-Loader/issues/1006","labels_url":"https://api.github.com/repos/nostra13/Android-Universal-Image-Loader/issues/1006/labels{/name}","comments_url":"https://api.github.com/repos/nostra13/Android-Universal-Image-Loader/issues/1006/comments","events_url":"https://api.github.com/repos/nostra13/Android-Universal-Image-Loader/issues/1006/events","html_url":"https://github.com/nostra13/Android-Universal-Image-Loader/issues/1006","id":83547289,"number":1006,"title":"Image can't be decoded-> .imageDecoder issue","user":{"login":"iDaniel19","id":12567132,"avatar_url":"https://avatars.githubusercontent.com/u/12567132?v=3","gravatar_id":"","url":"https://api.github.com/users/iDaniel19","html_url":"https://github.com/iDaniel19","followers_url":"https://api.github.com/users/iDaniel19/followers","following_url":"https://api.github.com/users/iDaniel19/following{/other_user}","gists_url":"https://api.github.com/users/iDaniel19/gists{/gist_id}","starred_url":"https://api.github.com/users/iDaniel19/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iDaniel19/subscriptions","organizations_url":"https://api.github.com/users/iDaniel19/orgs","repos_url":"https://api.github.com/users/iDaniel19/repos","events_url":"https://api.github.com/users/iDaniel19/events{/privacy}","received_events_url":"https://api.github.com/users/iDaniel19/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-06-01T15:02:50Z","updated_at":"2015-06-07T16:58:44Z","closed_at":null,"body":"  I get the error ` E/ImageLoader﹕ Image can't be decoded`. I found a solution here https://github.com/nostra13/Android-Universal-Image-Loader/issues/539. One guy says to copy a class `NutraBaseImageDecoder` andd add `.imageDecoder(new NutraBaseImageDecoder(true))` to the options, but when I try to add this it doesn't recognize the `.imageDecoder`. What am I doing wrong ? \r\n\r\nThis is what I've tried:\r\n\r\n     options = new DisplayImageOptions.Builder()\r\n                        .showImageOnLoading(R.drawable.ic_empty)\r\n                        .showImageForEmptyUri(R.drawable.ic_empty)\r\n                        .showImageOnFail(R.drawable.ic_error)\r\n                        .cacheInMemory(true)\r\n                        .cacheOnDisk(true)\r\n                        .imageDecoder(new NutraBaseImageDecoder(true))\r\n                        .considerExifParams(true)\r\n                        .displayer(new RoundedBitmapDisplayer(20)).build();\r\n\r\nThe problem is with `.imageDecoder(new NutraBaseImageDecoder(true))`. There are no spaces in the url. I also have this in `Uri.decode(url)` when I'm passing it in the image loader. \r\n\r\nEdit with errors :\r\n\r\n        06-01 14:12:14.746  13047-14716/name.company.newproject I/System.out﹕ AsyncTask #3 calls detatch()\r\n    06-01 14:12:14.766  13047-13454/name.company.newproject D/skia﹕ --- SkImageDecoder::Factory returned null\r\n    06-01 14:12:14.766  13047-13454/name.company.newproject D/skia﹕ --- SkImageDecoder::Factory returned null\r\n    06-01 14:12:14.766  13047-13454/name.company.newproject E/ImageLoader﹕ Image can't be decoded [httpURL]\r\n    06-01 14:12:14.826  13047-13455/name.company.newproject D/dalvikvm﹕ GC_FOR_ALLOC freed 3151K, 17% free 21796K/26124K, paused 22ms, total 22ms\r\n    06-01 14:12:14.836  13047-13455/name.company.newproject D/skia﹕ --- SkImageDecoder::Factory returned null\r\n    06-01 14:12:14.836  13047-13455/name.company.newproject D/skia﹕ --- SkImageDecoder::Factory returned null\r\n    06-01 14:12:14.836  13047-13455/name.company.newproject E/ImageLoader﹕ Image can't be decoded [httpURL]\r\n    06-01 14:12:14.856  13047-13452/name.company.newproject D/dalvikvm﹕ GC_FOR_ALLOC freed 716K, 17% free 21817K/26124K, paused 24ms, total 24ms\r\n    06-01 14:12:14.926  13047-13452/name.company.newproject D/dalvikvm﹕ GC_FOR_ALLOC freed 62K, 15% free 22330K/26124K, paused 24ms, total 24ms\r\n    06-01 14:12:14.946  13047-13047/name.company.newproject D/AbsListView﹕ unregisterIRListener() is called\r\n    06-01 14:12:15.446  13047-13454/name.company.newproject D/skia﹕ --- SkImageDecoder::Factory returned null\r\n    06-01 14:12:15.446  13047-13454/name.company.newproject D/skia﹕ --- SkImageDecoder::Factory returned null\r\n    06-01 14:12:15.446  13047-13454/name.company.newproject E/ImageLoader﹕ Image can't be decoded [httpURL]\r\n    06-01 14:12:15.456  13047-13452/name.company.newproject D/skia﹕ --- SkImageDecoder::Factory returned null\r\n    06-01 14:12:15.456  13047-13452/name.company.newproject D/skia﹕ --- SkImageDecoder::Factory returned null\r\n    06-01 14:12:15.456  13047-13452/name.company.newproject E/ImageLoader﹕ Image can't be decoded [httpURL]\r\n    06-01 14:12:15.506  13047-13047/name.company.newproject D/AbsListView﹕ unregisterIRListener() is called\r\n    06-01 14:12:15.576  13047-13455/name.company.newproject D/skia﹕ --- SkImageDecoder::Factory returned null\r\n    06-01 14:12:15.576  13047-13455/name.company.newproject D/skia﹕ --- SkImageDecoder::Factory returned null\r\n    06-01 14:12:15.576  13047-13455/name.company.newproject E/ImageLoader﹕ Image can't be decoded [httpURL]\r\n    06-01 14:12:15.576  13047-13454/name.company.newproject D/skia﹕ --- SkImageDecoder::Factory returned null\r\n    06-01 14:12:15.576  13047-13454/name.company.newproject D/skia﹕ --- SkImageDecoder::Factory returned null\r\n    06-01 14:12:15.576  13047-13454/name.company.newproject E/ImageLoader﹕ Image can't be decoded [httpURL]\r\n    06-01 14:12:15.616  13047-13047/name.company.newproject D/AbsListView﹕ unregisterIRListener() is called\r\n    06-01 14:12:15.666  13047-13047/name.company.newproject D/AbsListView﹕ unregisterIRListener() is called\r\n    06-01 14:12:15.896  13047-13452/name.company.newproject D/skia﹕ --- SkImageDecoder::Factory returned null\r\n    06-01 14:12:15.896  13047-13452/name.company.newproject D/skia﹕ --- SkImageDecoder::Factory returned null\r\n    06-01 14:12:15.896  13047-13452/name.company.newproject E/ImageLoader﹕ Image can't be decoded [httpURL]\r\n    06-01 14:12:15.896  13047-13455/name.company.newproject D/skia﹕ --- SkImageDecoder::Factory returned null\r\n    06-01 14:12:15.896  13047-13455/name.company.newproject D/skia﹕ --- SkImageDecoder::Factory returned null\r\n    06-01 14:12:15.896  13047-13455/name.company.newproject E/ImageLoader﹕ Image can't be decoded [httpURL]\r\n    06-01 14:12:16.096  13047-13454/name.company.newproject D/skia﹕ --- SkImageDecoder::Factory returned null\r\n    06-01 14:12:16.096  13047-13454/name.company.newproject D/skia﹕ --- SkImageDecoder::Factory returned null\r\n    06-01 14:12:16.096  13047-13454/name.company.newproject E/ImageLoader﹕ Image can't be decoded [httpURL]\r\n    06-01 14:12:16.096  13047-13452/name.company.newproject D/skia﹕ --- SkImageDecoder::Factory returned null\r\n    06-01 14:12:16.096  13047-13452/name.company.newproject D/skia﹕ --- SkImageDecoder::Factory returned null\r\n    06-01 14:12:16.096  13047-13452/name.company.newproject E/ImageLoader﹕ Image can't be decoded [httpURL]\r\n    06-01 14:12:16.656  13047-13455/name.company.newproject D/skia﹕ --- SkImageDecoder::Factory returned null\r\n    06-01 14:12:16.656  13047-13455/name.company.newproject D/skia﹕ --- SkImageDecoder::Factory returned null\r\n    06-01 14:12:16.656  13047-13455/name.company.newproject E/ImageLoader﹕ Image can't be decoded [httpURL]\r\n    06-01 14:12:16.656  13047-13454/name.company.newproject D/skia﹕ --- SkImageDecoder::Factory returned null\r\n    06-01 14:12:16.656  13047-13454/name.company.newproject D/skia﹕ --- SkImageDecoder::Factory returned null\r\n    06-01 14:12:16.656  13047-13454/name.company.newproject E/ImageLoader﹕ Image can't be decoded [httpURL]\r\n    06-01 14:12:16.846  13047-13452/name.company.newproject D/skia﹕ --- SkImageDecoder::Factory returned null\r\n    06-01 14:12:16.846  13047-13452/name.company.newproject D/skia﹕ --- SkImageDecoder::Factory returned null\r\n    06-01 14:12:16.846  13047-13452/name.company.newproject E/ImageLoader﹕ Image can't be decoded [httpURL]\r\n    06-01 14:12:16.856  13047-13455/name.company.newproject D/skia﹕ --- SkImageDecoder::Factory returned null\r\n    06-01 14:12:16.856  13047-13455/name.company.newproject D/skia﹕ --- SkImageDecoder::Factory returned null\r\n    06-01 14:12:16.856  13047-13455/name.company.newproject E/ImageLoader﹕ Image can't be decoded [httpURL]\r\n    06-01 14:12:17.056  13047-13455/name.company.newproject D/dalvikvm﹕ GC_FOR_ALLOC freed 4815K, 21% free 23079K/29068K, paused 22ms, total 22ms\r\n    06-01 14:12:17.316  13047-13454/name.company.newproject D/skia﹕ --- SkImageDecoder::Factory returned null\r\n    06-01 14:12:17.316  13047-13454/name.company.newproject D/skia﹕ --- SkImageDecoder::Factory returned null\r\n    06-01 14:12:17.316  13047-13454/name.company.newproject E/ImageLoader﹕ Image can't be decoded [httpURL]\r\n    06-01 14:12:17.316  13047-13452/name.company.newproject D/skia﹕ --- SkImageDecoder::Factory returned null\r\n    06-01 14:12:17.316  13047-13452/name.company.newproject D/skia﹕ --- SkImageDecoder::Factory returned null\r\n    06-01 14:12:17.316  13047-13452/name.company.newproject E/ImageLoader﹕ Image can't be decoded [httpURL]\r\n    06-01 14:12:18.116  13047-13452/name.company.newproject D/skia﹕ --- SkImageDecoder::Factory returned null\r\n    06-01 14:12:18.116  13047-13452/name.company.newproject D/skia﹕ --- SkImageDecoder::Factory returned null\r\n    06-01 14:12:18.116  13047-13452/name.company.newproject E/ImageLoader﹕ Image can't be decoded [httpURL]\r\n\r\n\r\nThe image is 2.6 MB."},"comment":{"url":"https://api.github.com/repos/nostra13/Android-Universal-Image-Loader/issues/comments/109772743","html_url":"https://github.com/nostra13/Android-Universal-Image-Loader/issues/1006#issuecomment-109772743","issue_url":"https://api.github.com/repos/nostra13/Android-Universal-Image-Loader/issues/1006","id":109772743,"user":{"login":"nostra13","id":1223348,"avatar_url":"https://avatars.githubusercontent.com/u/1223348?v=3","gravatar_id":"","url":"https://api.github.com/users/nostra13","html_url":"https://github.com/nostra13","followers_url":"https://api.github.com/users/nostra13/followers","following_url":"https://api.github.com/users/nostra13/following{/other_user}","gists_url":"https://api.github.com/users/nostra13/gists{/gist_id}","starred_url":"https://api.github.com/users/nostra13/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nostra13/subscriptions","organizations_url":"https://api.github.com/users/nostra13/orgs","repos_url":"https://api.github.com/users/nostra13/repos","events_url":"https://api.github.com/users/nostra13/events{/privacy}","received_events_url":"https://api.github.com/users/nostra13/received_events","type":"User","site_admin":false},"created_at":"2015-06-07T16:58:44Z","updated_at":"2015-06-07T16:58:44Z","body":"You must init ImageLoader before the first usage:\r\n``` java\r\n...\r\nImageLoader.getInstance().init(config.build());\r\n```\r\nYou can put it in your first `Activity.onCreate()`."}}