任务 ':app:compileFlutterBuildDebug' 执行失败。 SQFlite 数据库删除后

时间:2021-07-02 20:13:38

标签: android flutter sqlite sqflite

我正在使用 Flutter 应用程序进行开发。 一旦我删除了 SQFlite 数据库。 然后我尝试打开该应用程序。但它显示这样的错误和错误。

Launching lib\main.dart on AOSP on IA Emulator in debug mode...
lib\main.dart:1
../../Fullter%20software/flutter/.pub-cache/hosted/pub.dartlang.org/sqflite-2.0.0+3/lib/src/exception_impl.dart:11:7: Error: Expected an identifier, but got '/'.
Try inserting an identifier before '/'.
      /throw SqfliteDatabaseException(e.message!, e.details);
      ^
../../Fullter%20software/flutter/.pub-cache/hosted/pub.dartlang.org/sqflite-2.0.0+3/lib/src/exception_impl.dart:11:8: Error: 'throw' can't be used as an identifier because it's a keyword.
Try renaming this to be an identifier that isn't a keyword.
      /throw SqfliteDatabaseException(e.message!, e.details);
       ^^^^^
../../Fullter%20software/flutter/.pub-cache/hosted/pub.dartlang.org/sqflite-2.0.0+3/lib/src/exception_impl.dart:11:8: Error: Getter not found: 'throw'.
      /throw SqfliteDatabaseException(e.message!, e.details);
       ^^^^^
../../Fullter%20software/flutter/.pub-cache/hosted/pub.dartlang.org/sqflite-2.0.0+3/lib/src/exception_impl.dart:11:8: Error: Expected ';' after this.
      /throw SqfliteDatabaseException(e.message!, e.details);
       ^^^^^
../../Fullter%20software/flutter/.pub-cache/hosted/pub.dartlang.org/sqflite-2.0.0+3/lib/src/exception_impl.dart:5:11: Error: A non-null value must be returned since the return type 'T' doesn't allow null.
Future<T> wrapDatabaseException<T>(Future<T> Function() action) async {
          ^
2

FAILURE: Build failed with an exception.

* Where:
Script 'D:\Flutter\Fullter software\flutter\packages\flutter_tools\gradle\flutter.gradle' line: 1035

* What went wrong:
Execution failed for task ':app:compileFlutterBuildDebug'.
> Process 'command 'D:\Flutter\Fullter software\flutter\bin\flutter.bat'' finished with non-zero exit value 1

现在如何运行我的应用程序?

0 个答案:

没有答案