在我开始开发测试之前,我正尝试在Flutter上运行一个基线测试,但它已经失败了,请求已经包含的包:
Compiler message:
src/resources/news_api_provider_test.dart:17:5: Error: 'expect' is imported from both 'package:flutter_test/src/widget_tester.dart' and 'package:test_api/src/frontend/expect.dart'. expect(sum, 4);
^^^^^^
s
在打开应用程序时,颤振的防火墙软件包崩溃,这是日志文件,
E/MethodChannel#plugins.flutter.io/cloud_firestore(28101): Failed to handlemethod call
E/MethodChannel#plugins.flutter.io/cloud_firestore(28101):
java.lang.NullPointerException: Firestore component is not present.
E/MethodChannel#plugins.flutter.io/cloud_firestore(28101
我正在使用此连接插件检查互联网连接状态。它与flutter dart代码一起工作得很好,但是当我从原生android kotlin代码中调用flutter dart代码时,会发生这个missingplugin异常。因此,对于我来说,只有在使用平台通道从原生android kotlin代码调用flutter代码时,才会出现这个错误。
[ERROR:flutter/lib/ui/ui_dart_state.cc(157)] Unhandled Exception: MissingPluginException(No implementation found for method check on
我创建并运行了一个基于位置和天气的应用程序。但是当我关闭VS代码并尝试重新安装应用程序时,发生了以下错误!如何消除错误!
Launching lib\main.dart on Infinix X655C in debug mode...
/C:/flutter/.pub-cache/hosted/pub.dartlang.org/http-0.13.4/lib/src/io_client.dart:35:34: Error: Expected ')' before this.
var ioRequest = (hellawait _inner!.openUrl(re
我有一个简单的Flutter应用程序,带有调试配置。在我更改了gradle配置和其他东西以在发布模式下构建apk之后,我根据文档完成了所有的配置,并且发布构建工作正常。但现在我无法在调试模式下运行应用程序。它会显示此错误
I/flutter (15809): Observatory server failed to start after 11 tries
I/flutter (15809): Could not start Observatory HTTP server:
I/flutter (15809): SocketException: Failed to create server
我正在为自己构建一些内部工具来生成颤振应用程序,使用我已经设置的一些模板以及一些可以在应用程序之间共享的附加功能。
目前,代码编译、构建和部署,但是它被卡在第一个视图(空白的白色屏幕)上,并在失败之前重新尝试启动天文台服务器11次。除了下面的错误外,没有其他错误。
Launching lib\main.dart on Android SDK built for x86 in debug mode...
Built build\app\outputs\apk\debug\app-debug.apk.
I/flutter ( 7011): Observatory server failed to
我试图在Visual代码中运行这个颤振待办事项列表应用程序:
我遇到了一个错误:
I/flutter (30973): Observatory server failed to start after 11 tries
I/flutter (30973): Could not start Observatory HTTP server:
I/flutter (30973): SocketException: Failed to create server socket (OS Error: Operation not permitted, errno = 1), address = 127.
当我尝试在flutter应用程序中使用包'spreadsheet_decoder‘时,如下所示:
var file = Uri.file('spreadsheets/Contact_list.xlsx');
var bytes = File.fromUri(file).readAsBytesSync();
var decoder = SpreadsheetDecoder.decodeBytes(bytes);
在那里我在应用程序中创建了一个名为spreadsheets的文件夹,并将其添加到pubspec中。我得到了以下错误:
[VERBOSE-2:ui_dart
我做了一个flutter应用程序,首先我显示所有关于pdf文件的信息,它包括文件的url,通信形式Restfull API,一切正常,但我想下载这个文件时,用户点击它,我尝试:
onTap: () async {
// downloadFile(snapshot.data[index].file);
Dio dio = new Dio();
Directory dir =
我正在开发移动应用程序,其中我有外部文档(TXT文件)来读取字符串,但是我一直有这样的错误:没有这样的目录,如下所示
E/flutter ( 8649): [ERROR:flutter/lib/ui/ui_dart_state.cc(209)] Unhandled Exception: FileSystemException: Cannot open file, path = '/data/user/0/com.example.tafseer_mp3/app_flutter/suwaru.txt' (OS Error: No such file or directory, er