Can't resolve symbol "AsyncTask" in Android Studio

I have a class that extends AsyncTask in Java, but Android Studio is giving an error that the AsyncTask symbol cannot be resolved.

class GcmRegistrationAsyncTask extends AsyncTask<Void, Void, String> {
// CLASS CODE
}

      

Am I missing an import statement or error code?

+3


source to share


1 answer


I have the same problem in my Android Studio installation. Autoorganization doesn't work, but if you manually add import android.os.AsyncTask; for your import, the class will be found.



+5


source







All Articles