Hi,
I am getting this error during flutter compilation: -
Launching lib\main.dart on sdk gphone x86 in debug mode…
Running Gradle task ‘assembleDebug’…
…/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_auth_platform_interface-6.2.0/lib/src/method_channel/utils/exception.dart:14:11: Error: Member not found: ‘Error.throwWithStackTrace’.
Error.throwWithStackTrace(exception, stackTrace);
^^^^^^^^^^^^^^^^^^^
…/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_auth_platform_interface-6.2.0/lib/src/method_channel/utils/exception.dart:17:9: Error: Member not found: ‘Error.throwWithStackTrace’.
Error.throwWithStackTrace(
^^^^^^^^^^^^^^^^^^^
…/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_auth_platform_interface-6.2.0/lib/src/method_channel/utils/exception.dart:12:7: Error: A non-null value must be returned since the return type ‘Never’ doesn’t allow null.
Never convertPlatformException(Object exception, StackTrace stackTrace) {
^
FAILURE: Build failed with an exception.
-
Where:
Script ‘C:\Users\arminder.singh\flutter\packages\flutter_tools\gradle\flutter.gradle’ line: 1070 -
What went wrong:
Execution failed for task ‘:app:compileFlutterBuildDebug’.
Process ‘command ‘C:\Users\arminder.singh\flutter\bin\flutter.bat’’ 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 1m 7s
Exception: Gradle task assembleDebug failed with exit code 1