Warning running in android 11

C:\Users\reegan\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\shared_preferences-0.5.12+4\android\src\main\java\io\flutter\plugins\sharedpreferences\MethodCallHandlerImpl.java:9: warning: [deprecation] AsyncTask in android.os has been deprecated
import android.os.AsyncTask;
^
C:\Users\reegan\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\shared_preferences-0.5.12+4\android\src\main\java\io\flutter\plugins\sharedpreferences\MethodCallHandlerImpl.java:121: warning: [deprecation] AsyncTask in android.os has been deprecated
new AsyncTask<Void, Void, Boolean>() {
^
C:\Users\reegan\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\shared_preferences-0.5.12+4\android\src\main\java\io\flutter\plugins\sharedpreferences\MethodCallHandlerImpl.java:121: warning: [deprecation] AsyncTask() in AsyncTask has been deprecated
new AsyncTask<Void, Void, Boolean>() {
^
C:\Users\reegan\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\shared_preferences-0.5.12+4\android\src\main\java\io\flutter\plugins\sharedpreferences\MethodCallHandlerImpl.java:123: warning: [deprecation] doInBackground(Params…) in AsyncTask has been deprecated
protected Boolean doInBackground(Void… voids) {
^
where Params,Result are type-variables:
Params extends Object declared in class AsyncTask
Result extends Object declared in class AsyncTask
C:\Users\reegan\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\shared_preferences-0.5.12+4\android\src\main\java\io\flutter\plugins\sharedpreferences\MethodCallHandlerImpl.java:121: warning: [deprecation] AsyncTask() in AsyncTask has been deprecated
new AsyncTask<Void, Void, Boolean>() {
^
C:\Users\reegan\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\shared_preferences-0.5.12+4\android\src\main\java\io\flutter\plugins\sharedpreferences\MethodCallHandlerImpl.java:128: warning: [deprecation] onPostExecute(Result) in AsyncTask has been deprecated
protected void onPostExecute(Boolean value) {
^
where Result is a type-variable:
Result extends Object declared in class AsyncTask
C:\Users\reegan\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\shared_preferences-0.5.12+4\android\src\main\java\io\flutter\plugins\sharedpreferences\MethodCallHandlerImpl.java:131: warning: [deprecation] execute(Params…) in AsyncTask has been deprecated
}.execute();
^
where Params,Progress,Result are type-variables:
Params extends Object declared in class AsyncTask
Progress extends Object declared in class AsyncTask
Result extends Object declared in class AsyncTask
7 warnings
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.