How to fix this error Task 'assembleAarRelease' not found in root project 'flutter_plugin_android_lifecycle'.?
I just changed the compileSdkVersion to 29 instead of 28.
in androidmanifest.xml my user-permission was in wrong place and marked as red..moved outside <application>
and worked.
Did you tried switching flutter channel to stable and then upgrade flutter version?This worked for me.run the following commands in cmd...
flutter channel stable
then...
flutter upgrade