title: how to solve flutter.gradle and flutter.bat error? 'D:\src\flutter\packages\flutter_tools\gradle\flutter.gradle' line: 1052'
body: <p>/D:/src/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_auth_platform_interface-4.2.4/lib/src/method_channel/method_channel_firebase_auth.dart:244:34: Error: A non-null value must be returned since the return type 'UserCredentialPlatform' doesn't allow null.</p>
  <ul>
  <li>'UserCredentialPlatform' is from 'package:firebase_auth_platform_interface/src/platform_interface/platform_interface_user_credential.dart' ('/D:/src/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_auth_platform_interface-4.2.4/lib/src/platform_interface/platform_interface_user_credential.dart').
  Future createUserWithEmailAndPassword(
  ^
  2</li>
  </ul>
  <p>FAILURE: Build failed with an exception.</p>
  <ul>
  <li><p>Where:
  Script 'D:\src\flutter\packages\flutter_tools\gradle\flutter.gradle' line: 1052</p>
  </li>
  <li><p>What went wrong:
  Execution failed for task ':app:compileFlutterBuildDebug'.</p>
  </li>
  </ul>
  <blockquote>
  <p>Process 'command 'D:\src\flutter\bin\flutter.bat'' finished with non-zero exit value 1</p>
  </blockquote>
  <ul>
  <li><p>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.</p>
  </li>
  <li><p>Get more help at <a href="https://help.gradle.org" rel="nofollow noreferrer">https://help.gradle.org</a></p>
  </li>
  </ul>
  <h2>BUILD FAILED in 1m 56s
  Exception: Gradle task assembleDebug failed with exit code 1
  Exited (sigterm)</h2>
  <p>Know i am getting this
  /D:/src/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_auth_platform_interface-4.2.4/lib/src/method_channel/method_channel_firebase_auth.dart:244:34:<br />
  Error: A non-null value must be returned since the return type 'UserCredentialPlatform' doesn't allow null.</p>
  <ul>
  <li>'UserCredentialPlatform' is from 'package:firebase_auth_platform_interface/src/platform_interface/platform_interface_user_credential.dart'
  ('/D:/src/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_auth_platform_interface-4.2.4/lib/src/platform_interface/platform_interface_user_credential.dart ').
  Future createUserWithEmailAndPassword(</li>
  </ul>