0
votes

So I upgraded my Flutter version to "2.5.3" and since then my code stop running and when I run it I get the error that says: The plugins `flutter_custom_dialog, flutter_webview_plugin, libphonenumber, permission, shared_preferences, simple_rsa, url_launcher` use a deprecated version of the Android embedding. To avoid unexpected runtime failures, or future build failures, try to see if these plugins support the Android V2 embedding. Otherwise, consider removing them since a future release of Flutter will remove these deprecated APIs. If you are plugin author, take a look at the docs for migrating the plugin to the V2 embedding: https://flutter.dev/go/android-plugin-migration. And then the run will stop and I will get further error like 146:15: Error: The method 'setMockMethodCallHandler' isn't defined for the class 'MethodChannel'. and with addition below error: ``` FAILURE: Build failed with an exception.

  • Where: Script '/Users/mickeymuller/Downloads/fluttersdk/packages/flutter_tools/gradle/flutter.gradle' line: 1005

  • What went wrong: Execution failed for task ':app:compileFlutterBuildDebug'.

Process 'command '/Users/mickeymuller/Downloads/fluttersdk/bin/flutter'' finished with non-zero exit value 1

  • 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 4m 31s Exception: Gradle task assembleDebug failed with exit code 1 ```

1
Have you updated that plugins? I have the same problem with two widgets but only is a warning, it build correctly for me.Miguel Escobar Calderon

1 Answers

0
votes

So I was able to resolve this issue by downgrading my Flutter version to a version below 2.5 because finding shows that versions from 2.5 encounter this error. To download for mac here is the link : enter link description here

Window: enter link description here