I have a class which extends AsyncTask in Java, but Android Studio gives an error that the symbol AsyncTask can't be resolved.
class GcmRegistrationAsyncTask extends AsyncTask<Void, Void, String> {
// CLASS CODE
}
Do I miss an import statement or is my code wrong?
I have the same issue in my Android Studio installation. Auto organizing does not work, but if you manually add import android.os.AsyncTask; to your imports, the class will be found.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With