我无法在VS Code中启动Dart Dev工具,当我在调试模式下启动时,它会打开一个chrome窗口,显示为Connect to a running app Enter a port or URL to a running Dart or Flutter application.
当我将鼠标悬停在Dart DevTools按钮上时,它显示了一个端口,但我仍然无法连接到它。
有什么想法吗?
我想在背景中设置图像,我已经在项目名称下创建了一个资产文件夹,并将图像粘贴在其中,我编写了下面的代码。但它显示出这样的错误,
I/flutter (13556):
I/flutter (13556): When the exception was thrown, this was the stack:
I/flutter (13556): #0 PlatformAssetBundle.load (package:flutter/src/services/asset_bundle.dart:221:7)
I/flutter (13556): <asynchronous susp
当我使用我的应用程序单击“与google一起登录”按钮时,它的意思是在弹出窗口中显示google日志,但是我得到了以下错误:
W/DynamiteModule(15856): Local module descriptor class for com.google.android.gms.auth.api.fallback not found.
E/flutter (15856): [ERROR:flutter/lib/ui/ui_dart_state.cc(209)] Unhandled Exception: PlatformException(sign_in_failed, com.goo
已经有几天在ios上的颤振构建出现了问题。我用flutter_blue库创建了一个蓝牙应用程序。如果我想运行这个,我会得到下面的堆栈跟踪。正确设置iOS部署目标。重新安装Pods和颤振框架,不幸的是清除缓存没有帮助。
Command CompileSwiftSources failed with a nonzero exit code
Command CompileSwiftSources failed with a nonzero exit code
/Users/pce/DevTools/flutter/.pub-cache/hosted/pub.dartlang.org
我正在使用flutter: Flutter 1.20.0·通道稳定·https://github.com/flutter/flutter.git框架·修订840c9205b3 (6个月前)·2020-08-04 20:55:12 -0700引擎·修订c8e3b94853工具·Dart 2.9.0 我仍然使用Flutter 1.20.0的主要原因是我自己的问题,我在这里也问了: is it possible to continue using flutter SDK "1.20.0" and not upgrading anymore? any future problems
我有一个BottomNavigationBar的5菜单。当我从一个切换到另一个时,有时我会收到这样的错误消息
E/flutter (13314): [ERROR:flutter/lib/ui/ui_dart_state.cc(157)] Unhandled Exception: setState() called after dispose(): _PromoProductState#a00c8(lifecycle state: defunct, not mounted)
E/flutter (13314): This error happens if you call setState()
我正在开发我的第一个应用程序与颤振和火基。我建了一次,很久之后才把它连接到Firebase。现在我已经做了90%,但我不能建立的apk,不能纠正错误,因为建设它。我需要帮助。
这是一个错误:
C:\Users\Asus\flutter\bin\flutter.bat --no-color build apk
Building without sound null safety
For more information see https://dart.dev/null-safety/unsound-null-safety
Running Gradle task 'assembl
我目前有一个TabBarView.The TabBarView有3个选项卡。第二个选项卡有一个页面,其中也有两个选项卡。现在的问题是,如果我直接从tab0切换到tab2。我得到以下错误:
flutter: ══╡ EXCEPTION CAUGHT BY WIDGETS LIBRARY ╞═══════════════════════════════════════════════════════════
flutter: The following assertion was thrown while finalizing the widget tree:
flutter: 'pack
我正在铬浏览器中运行我的颤振应用程序,它将显示以下错误。
Do not call didCreateEngineInitializer by hand. Start with loadEntrypoint instead.
TypeError: this._didCreateEngineInitializerResolve is not a function
我的颤振doctor --verbose输出
[✓] Flutter (Channel stable, 3.3.1, on macOS 12.4 21F79 darwin-x64, locale en-GB)
• Flutter
使用Provider和FutureBuilder,我刚刚从数据库中删除了数据,同时删除了它,它显示了一个带有坏状态的红色屏幕,没有任何元素。添加数据没有问题,请不要显示此问题。代码如下所示
栈迹
ter (12519): ══╡ EXCEPTION CAUGHT BY WIDGETS LIBRARY ╞═══════════════════════════════════════════════════════════
I/flutter (12519): The following StateError was thrown building ViewNoteScreen(dirty, de
所以我通常每天都使用Flutter Inspector,最近,在一些我无法分辨的更新之后,Flutter Inspector停止了工作。以下是我打开它时得到的结果: 设置DevTools失败 Error Setting up DevTools Failed 这可能与一些版本控制有关,但我不知道如何解决这个问题。以下是我的结果: 颤动医生 Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, 1.22.2, on Microsoft Windows [Version 10
当我运行flutter doctor时,它显示了以下错误: Running flutter doctor...
Doctor summary (to see all details, run flutter doctor -v):
[?] Flutter (Channel stable, v1.2.1, on Microsoft Windows [Version 10.0.17134.112], locale en-US)
[!] Android toolchain - develop for Android devices (Android SDK version 27.0.3)
一个月前,当我创建一个新的颤振项目,在firebase注册它,并在上面的页面上运行这个示例时,我能够注册并登录到iOS模拟器和安卓模拟器中。
当我今天再次运行该应用程序时,iOS上会出现异常,即使我在用户注册屏幕上输入电子邮件/密码并按下提交按钮,屏幕显示也不会改变。情况是用户注册尚未完成。
使用android仿真器,用户注册和登录可以顺利完成。当然,我已经在firebase控制台中将"email/password“方法设置为"enabled”。异常消息如下所示。
Launching lib/main.dart on iPhone SE (2nd generation) in
我想做一个简单的颤动应用程序,并想添加一个图像从我的资产,我已经尝试,但图像仍然无法加载。这就是我加载图像的方式
Image.asset('assets/images/food.jpg')
pubspec.yaml代码:
flutter:
# The following line ensures that the Material Icons font is
# included with your application, so that you can use the icons in
# the material Icons class.
uses-ma
有人能告诉我为什么我会犯这个错误吗?
The current Dart SDK version is 2.12.0.
Because app requires SDK version >=2.15.1 <3.0.0, version solving failed.
pub get failed (1; Because app requires SDK version >=2.15.1 <3.0.0, version solving failed.)
这是我的颤音版
Flutter 2.10.1 • channel stable • https://github.com
当我从颤振移动到网络时,我注意到在控制台上打印的日志没有帮助,因为它们没有针对我的IDE (Android )在移动环境中的代码:
======= Exception caught by widgets library =======================================================
The following message was thrown building PhoneSignUpPage(state: _PhoneSignUpPageState#b52e9):
some error
The relevant error-causing