Android java.lang.IllegalArgumentException: Object returned from onCreateLoader must not be a non-st

厌伴老儒烹瓠叶,强随举子踏槐花。这篇文章主要讲述Android java.lang.IllegalArgumentException: Object returned from onCreateLoader must not be a non-st相关的知识,希望能为你提供帮助。
AsyncTaskLoader: http://developer.Android.com/intl/zh-CN/reference/android/content/AsyncTaskLoader.html 
错误信息:

java.lang.IllegalArgumentException: Object returned from onCreateLoader must not be a non-static inner member class: DownloadTask

原因:
public static class DownloadTask extends AsyncTaskLoader< D> {

【Android java.lang.IllegalArgumentException: Object returned from onCreateLoader must not be a non-st】必须static

    推荐阅读