What went wrong:
A problem occurred evaluating root project 'flutter_plugin_android_lifecycle'.
Failed to apply plugin [id 'com.android.library']
Minimum supported Gradle version is 5.4.1. Current version is 4.10.2. If using the gradle wrapper, try editing the distributionUrl in /Users/xx/.pub-cache/hosted/pub.flutter-io.cn/flutter_plugin_android_lifecycle-1.0.5/android/gradle/wrapper/gradle-wrapper.properties to gradle-5.4.1-all.zip
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.``
FAILURE: Build failed with an exception.
Where: Build file '/Users/xx/.pub-cache/hosted/pub.flutter-io.cn/flutter_plugin_android_lifecycle-1.0.5/android/build.gradle' line: 22
What went wrong: A problem occurred evaluating root project 'flutter_plugin_android_lifecycle'.
Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.``