What went wrong:
A problem occurred evaluating project ':mcumgr_flutter'.
Could not create an instance of type com.squareup.wire.gradle.WireExtension$ProtoRootSet.
Could not generate a decorated class for type WireExtension.ProtoRootSet.
org/gradle/api/internal/catalog/DelegatingProjectDependency
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.
2: Task failed with an exception.
What went wrong:
A problem occurred configuring project ':mcumgr_flutter'.
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 completed with 2 failures.
1: Task failed with an exception.
Where: Build file 'C:\Users\LiuPeng\AppData\Local\Pub\Cache\hosted\pub.flutter-io.cn\mcumgr_flutter-0.1.1+1\android\build.gradle' line: 45
What went wrong: A problem occurred evaluating project ':mcumgr_flutter'.
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.
2: Task failed with an exception.
What went wrong: A problem occurred configuring project ':mcumgr_flutter'.
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.
Get more help at https://help.gradle.org
BUILD FAILED in 2s Exception: Gradle task assembleDebug failed with exit code 1
How to handle it?