The argument type 'Int32List' can't be assigned to the parameter type
'Uint16List'
- 'Int32List' is from 'dart:typed_data'.
- 'Uint16List' is from 'dart:typed_data'.
Try changing the type of the parameter, or casting the argument to 'Uint16
在运行我的应用程序时,控制台中出现了以下错误:
flutter: type '() => Null' is not a subtype of type '(dynamic) => FutureOr<dynamic>' of 'f'
不幸的是,它没有告诉我到底是哪一种代码导致了这个错误?为什么颤振在输出中遗漏了更多的信息?
Visual Studio Code 1.28.2
Flutter 0.9.4
Dart VM version: 2.0.0
我想在VS代码的仿真器上运行我的颤振程序。这个想法是,当我在VS代码中运行调试会话时,应用程序应该出现在模拟器上。我打开了模拟器并连接到VS代码,但是,当我尝试调试时,我会得到一个错误,即" error : Error (读取‘bin/main.dart’时的错误“:系统找不到指定的路径)。
**This is my launch.json file in VS Code**
"version": "0.2.0",
"configurations": [
{
"name&
在Visual Studio Code v1.46.1中运行应用程序时出现主要错误 FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:cleanMergeDebugAssets'.
> Unable to delete directory 'E:\ACNO\Flutter\jots_mobile\build\app\intermediates\merged_assets\debug\out'
Failed to
我在用角飞镖做一个项目。在我的pubspec.yaml里
dependencies:
browser: any
angular: "^1.1.2+2"
shadow_dom: any
json_object: any
bootjack: any
crypto: any
xml: "^2.3.2"
transformers:
- angular
用于我的依赖关系。当我在Dartium中运行我的程序时,我会得到错误。
The requested built-in library is not available on Dartium
我正在我的Linux (Xenial Xerus)系统上配置Flutter SDK。为什么在运行颤动医生时会出现以下错误?
我已经在.bashrc文件中为flutter和dart指定了PATHS,但在运行flutter doctor时得到以下错误
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel beta, v0.5.1, on Linux, locale en_US.UTF-8)
[✓] Android toolchain - develop for Android device
嗨,我正在尝试读取QR代码并将QR代码中的数据发送到我的服务器。但是在运行flutter build ios时,我在启动应用程序时会看到xcode中的错误:
LateInitializationError: Field '_channel@598294394' has not been initialized.
#0 _QRViewState._channel (package:qr_code_scanner/src/qr_code_scanner.dart)
#1 _QRViewState.updateDimensions (package:qr_code
我将项目文件夹从桌面复制/粘贴到笔记本上,并安装了大部分所需的东西,比如Android、flutter和dart SDK。然而,当我试图运行我的应用程序时,它会出现一个错误:
Starting Gradle Daemon...
Gradle Daemon started in 2 s 402 ms
FAILURE: Build failed with an exception.
* What went wrong:
Executing Gradle tasks as part of a build without a settings file is not supported. Make
我使用HttpRequest.getString方法动态加载一些内容,在我从dart代码生成一些js之前,它工作得很好。运行生成的javascript会导致在这一点上出现这些错误“访问被拒绝”:
// An uncaught error in the root context terminates all isolates.
if (identical(this, _globalState.rootContext)) {
rethrow;
}
这是dart代码:
void loadPage(String src)
{
HttpRequest.getString(
我的应用程序一直在运行,直到我更新到最新版本的Dart SDK和编辑器。
当我在Dartium中运行应用程序时,抛出了一个错误'The built-in library 'dart:io' is not available on Dartium'。我没有直接使用dart:io,但是像google_oauth2_client这样的导入lib包使用了它。直到一两个小时前,这一切都运行得很好。
在这个问题得到解决之前,我有点卡住了。有没有人有同样的问题?
在使用省道迁移之后,尝试在chrome或macos上运行我的应用程序时,我在控制台中得到以下错误:
Downloading Web SDK... 2,674ms
Launching lib/web/main.dev.dart on Chrome in debug mode...
Waiting for connection from debug service on Chrome...
../../../.pub-cache/hosted/pub.dartlang.org/styled_te
在使用集团而不是提供程序时,我得到了这个错误。
在尝试将事件添加到在出现此错误之前创建的SomeBloc时:
======== Exception caught by gesture ===============================================================
The following StateError was thrown while handling a gesture:
Bad state: Tried to read a provider that threw during the creation of its value.
T
在dart-web-component上运行pub install会出现错误:
Pub install fail, HttpParserException: Connection closed before full header was received
/dart-web-components/build.dart --changed=packages\args\args.dart --changed=packages\args\src\utils.dart --changed=packages\logging\...
Failed with error code 255
Unable