我的代码显示错误防火墙未被正确初始化。?
**Usually this means you've attempted to use a Firebase service before calling `Firebase.initializeApp`.
E/flutter (25616):
E/flutter (25616): View the documentation for more information: https://firebase.flutter.dev/docs/overview#initialization
E/flutter (25616):
E/fl
提示:
(对不起,错误。)英语不是我的母语)
(我是新来的颤音)
我的颤振项目有很多错误。我想那是因为包裹。当我写:import 'package:flutter/material.dart';时,android在它下面画一条红线,表示错误,当我按住导入包上的鼠标指针时,它说:Target of URI doesn't exist: 'package:flutter/material.dart' --我认为这就是所有错误的原因。我怎么才能修好它?
我的错误:
error: Target of URI doesn't exist: 'pac
当我在flutter项目中使用速度x时,flutter应用程序中有一个错误。 错误: ======== Exception caught by rendering library =====================================================
RenderBox was not laid out: RenderRepaintBoundary#b1110 NEEDS-PAINT
'package:flutter/src/rendering/box.dart':
Failed assertion: line 1785 pos 12: &
我是新来的颤栗和一直试图做一个简单的问答应用。我遇到了一个错误,我不知道出了什么问题。
错误:
Compiler message:
lib/main.dart:37:17: Error: The method 'Answer' isn't defined for the class '_MyAppState'.
- '_MyAppState' is from 'package:project2/main.dart'
我试过在windows上安装flutter的试驾,就像这里的https://flutter.dev/docs/get-started/test-drive 默认应用程序生成了工作,但是当我尝试在https://flutter.dev/docs/get-started/codelab上学习snd部分时 我得到错误: error: The function 'MyApp' isn't defined. (undefined_function at [flutter_app007] lib\main.dart:3)
error: 'MaterialApp'
我使用事件通道在颤振返回信标数据从原生SDK到颤振。这是好的工作直到最近颤振upgrade.Now,我得到以下错误。
type '(PlatformException) => void' is not a subtype of type '(Object) => FutureOr<dynamic>
具有以下堆栈跟踪:
#0 _registerErrorHandler (dart:async/async_error.dart:22:60)
#1 _BufferingStreamSubscription.onError (dart
我想要创建我的发射图标颤音。我的配置(pubspec.yaml)如下所示。
...
# The following adds the Cupertino Icons font to your application.
# Use with the CupertinoIcons class for iOS style icons.
cupertino_icons: ^1.0.2
flutter_spinkit: ^5.1.0
url_launcher: ^6.0.17
http: ^0.13.4
intl: ^0.17.0
flutter_launcher_ico
我在主页 StatefullWidget中有一个名为StatefullWidget的方法,我想从main.dart中调用这个方法。
,我正在尝试从我的main.dart文件中调用方法计数器()。我将代码发布在下面
here is my homepage, class
import 'package:flutter/material.dart';
class homepage extends StatefulWidget {
const homepage({Key? key}) : super(key: key);
@over
我以前创建过这个项目,并且尝试再次运行它,但是我得到了以下错误:
错误日志:
Launching lib\main.dart on AOSP on IA Emulator in debug mode...
lib\main.dart:1
√ Built build\app\outputs\flutter-apk\app-debug.apk.
ziparchive W 10-02 23:01:47 10808 9104 Unable to open 'T:my_ap\build\app\outputs\flutter-apk\app.apk': Illegal byte se
刚在我的flutter应用程序中添加了桌面支持,它在android仿真器中运行良好,但不会在浏览器或桌面中呈现任何元素,只是一个简单的没有错误的空白页面。
这是我在控制台中遇到的错误,不确定这个错误是否真的是firebase造成的问题。
Launching lib/main.dart on Linux in debug mode...
Building Linux application...
Debug service listening on ws://127.0.0.1:40449/v58VaNveMLo=/ws
Syncing files to device Linux...
启动应用程序时,控制台中会出现以下错误:
Launching lib\main.dart on Android SDK built for x86 in debug mode...
lib\main.dart:1
e: C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\flutter_app_restart-1.0.0\android\src\main\kotlin\com\example\flutter_app_restart\FlutterRestartPlugin.kt: (55, 18): Type mismatch: inferred
我有一个通用的StatefulWidget类,它有一个Function回调。当我试图调用那个回调时,我会得到一个运行时TypeError
══╡ EXCEPTION CAUGHT BY WIDGETS LIBRARY ╞═══════════════════════════════════════════════════════════
The following _TypeError was thrown building MyStatefulWidget<int>(dirty, state:
MyState<int>#cacb3):
type '(int)
我的代码中没有错误。因此,当代码运行时,它会出现在调试控制台中: launching lib\main.dart on AOSP on IA Emulator in debug mode...
ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
Please set the JAVA_HOME variable in your environment to match the
location of your Java installation.
我正在使用flutter上的AndroidStudio在ubuntu上准备小型演示应用程序。应用程序运行良好,我突然使用flutter upgrade命令升级了我的flutter upgrade。
现在,当我再次编译应用程序时,问题就从这里开始,编译时生成的错误如下:
Launching lib/main.dart on Android SDK built for x86 in debug mode...
Initializing gradle...
Resolving dependencies...
Gradle task 'assembleDebug'...
Compil
更新颤振3.0后,出现编译错误。此错误没有引用我的代码。它指的是框架。
Launching lib/main.dart on Chrome in debug mode...
lib/main.dart:1
: Warning: Operand of null-aware operation '!' has type 'SchedulerBinding' which excludes null.
../…/src/framework.dart:275
- 'SchedulerBinding' is from 'package:flutter
我正在尝试导入URL启动程序包,但似乎flutter无法识别该包。
我在pubspec.yaml文件中提到过这个包。我还使用了命令flutter packages get。我可以在外部库中看到导入的包,但不能导入它。import 'package:url_launcher/url_launcher.dart';似乎有问题
作为参考,我也粘贴了错误信息、代码和pubspec.yaml文件
我收到以下错误
Error: Could not resolve the package 'url_launcher' in 'package:url_launcher/