Closed vitorhpereira closed 3 years ago
Hi @vitorhpereira !
Thanks for reaching out about this and apologies for the late reply. From the logs it seems you might have some stale libs so I would recommend running 'Flutter clean' and see if the problem goes away.
Hope it helps but please don't hesitate to reach out if you are still having trouble building.
What could be? I'm trying to execute your example. Thanks!
On Mac M1.
Error log:
`Running "flutter pub get" in myapp1... Launching lib/main.dart on sdk gphone64 arm64 in debug mode... Running Gradle task 'assembleDebug'... Note: /Users/vitor/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_blue-0.8.0/android/src/main/java/com/pauldemarco/flutter_blue/FlutterBluePlugin.java uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details. Note: Some input files use or override a deprecated API. Note: Recompile with -Xlint:deprecation for details. Note: Some input files use unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details.
FAILURE: Build completed with 2 failures.
1: Task failed with an exception.
What went wrong: Execution failed for task ':app:checkDebugDuplicateClasses'.
Go to the documentation to learn how to Fix dependency resolution errors.
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: Execution failed for task ':app:mergeDebugJavaResource'.
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 8s Exception: Gradle task assembleDebug failed with exit code 1 `