升级到颤振2.10后,我得到以下错误:
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Warning
──────────────────────────────────────────────────────────────────────────────
Your Flutter application is created using an older version of the Android
embedding. It is being deprecated in fav
我使用颤振包(基于)来生成。
当我运行flutter packages pub run build_runner build时,我得到了上述异常:
lib/main_staging.DAT(缓存)上的严重auto_route_generator:autoRouteGenerator:
无效参数:缺少库:包:tenant_app/app/app.dart
我在将颤振版本从3.0.5升级到3.3.1后遇到了这个问题
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable,
我有一个颤振项目,我升级到最新版本的颤振。然后,应用程序突然停止了构建,并给出了问题中的错误。
我试过了
flutter clean
flutter packages upgrade
flutter packages get
flutter doctor
颤振医生没有错误
/Users/mac/Desktop/code/flutter/flutter/bin/flutter --no-color doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel master, v0.5
最近,我将flutter dependencies flutter_secure_storage升级到了新版本5.0.0。今天,当我编译flutter(2.5.x)项目时,显示的错误如下: /Users/dolphin/.pub-cache/hosted/pub.dartlang.org/flutter_secure_storage-5.0.0/android/src/main/java/com/it_nomads/fluttersecurestorage/FlutterSecureStoragePlugin.java:250: error: lambda expressions are n
所以我想升级颤振版本,但是当我运行flutter doctor时,会出现这个错误
Doctor summary (to see all details, run flutter doctor -v):
[!] Flutter (Channel unknown, 3.3.2, on Microsoft Windows [Version 10.0.19044.2130], locale en-GB)
! Upstream repository unknown
[√] Android toolchain - develop for Android devices (Android SDK v
升级到Flacter3.1之后,我可以为android构建和运行,但是我在ios上得到了以下错误。我想知道这个问题的原因何在?
Aungs-MBP:ios aungmyooo$ pod install
Analyzing dependencies
firebase_analytics: Using Firebase SDK version '8.15.0' defined in 'firebase_core'
firebase_core: Using Firebase SDK version '8.15.0' defined in 'fi
我试着用flutter build web(也尝试过flutter build web --no-sound-null-safety).When在发布模式上构建颤振web应用程序,我得到了下面的错误。
D:\saves\reset_password>flutter build web
Building without sound null safety
For more information see https://dart.dev/null-safety/unsound-null-safety
Target dart2js failed: Exception: Warning
升级到Flutter 3.3.2后,我无法构建我的应用程序,因为'open_file‘插件使用的是安卓嵌入的不受欢迎的版本。是否有办法按照下面的警告消息将上述插件迁移到Android V2嵌入?还是我不得不降级以删除2.x.x?
The plugin `open_file` uses a deprecated version of the Android embedding.
To avoid unexpected runtime failures, or future build failures, try to see if this plugin supports the And
我一直在使用macOS 10.15.3编程,目标是iOS设备。今天,我还试着安装Android,以扩展。安装没有出错,但是在Library/Android/sdk/中没有tools子目录,这是一个问题,因为sdkmanager应该在Library/Android/sdk/tools/bin中找到。
我之所以注意到这一点,是因为运行flutter doctor给了我:
✗ Android license status unknown.
Try re-installing or updating your Android SDK Manager.
See https
将颤振升级到3.0.2后出现此错误
.pub-cache/hosted/pub.dartlang.org/flutter_archive-4.1.1/android/src/main/kotlin/com/kineapps/flutterarchive/FlutterArchivePlugin.kt: (370, 58): Object is not abstract and does not implement abstract member public abstract fun error(p0: String, p1: String?, p2: Any?): Unit defined
在将我的android升级到版本12之后,我的代码停止了工作,我使用了颤振插件tflite_flutter 0.9.0,并孤立地启动了tflite。
它抛出此错误:
TfLiteGpuDelegate Invoke: GpuDelegate must run on the same thread where it was initialized.
E/tflite (20055): Node number 64 (TfLiteGpuDelegateV2) failed to invoke.
E/flutter (20055): [ERROR:flutter/runtime/dart_isola
最近,我将颤振版本从以前的版本升级到2.0版本,但除了少数例外情况外,我决定将其降级到稳定通道上的颤振版本(1.22.6)。
现在我在发布get上得到了这个错误,因为sdk中的每个版本的flutter_test都依赖于路径1.8.0-nullsafety.1,而PawFect依赖于路径^1.8.0,而来自sdk的flutter_test是被禁止的。因此,由于PawFect依赖于sdk中的任何flutter_test,所以版本解决失败。发布失败(1;因此,由于PawFect依赖于sdk中的任何flutter_test,版本解决失败)。
我的pubspec.yaml现在看起来是这样的。
...
v
我刚刚将颤振版本从2.5.3升级到2.8。我有以下错误,我不知道如何解决它。在安装的任何插件上都没有错误,似乎错误来自内部类本身,我不知道错误在应用程序的哪一部分被抛出:
../../AppData/Local/Pub/Cache/hosted/pub.dartlang.org/flutter_math_fork-0.3.3+1/lib/src/widgets/selectable.dart:407:7: Error: The non-abstract class 'InternalSelectableMathState' is missing implementations
当升级flutter出现异常,应用程序无法再次运行时,我该如何解决?
In file included from
/Users/raitotec/developer/flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences-0.5.12+4/ios/Classes/FLTSharedPreferencesPlugin.m:5:
/Users/raitotec/developer/flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences-0.5.12
我在Android中使用stable频道开发了一个颤振应用程序,现在我将颤振插件升级到53个,现在当我尝试运行我的应用程序时,我收到了这个错误
Could not find an option named "devtools-server-address".
Run 'flutter -h' (or 'flutter <command> -h') for available flutter commands and options.
有人建议使用dev通道,但我需要继续使用stable通道!
建议链接:
我一直试图让我的颤振项目在升级到2.10.4之后运行,这从一开始就让人头疼。该项目在浏览器上运行良好,但我在Android仿真器上运行遇到困难。我想我已经到了最后一关了,但我现在很困惑。在VS代码上运行时,我会收到此错误:
失败:生成失败,出现异常。
* What went wrong:
Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'.
> Failed to install the following SDK components:
build-too
我现在正在做的是一个iOS项目,我已经连接到了颤振,它在3.0.3之前正常运行。因为我在做动画的时候使用了Matrix4.setEntry,在连续运行了一段时间之后,出现了冻结。我在需要升级到3.3.0以上的问题上找到了一个答案。但是在我升级到3.3.8之后,the 'Flutter/Flutter.h' file was not found出现了。
颤振医生:
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.3.8, on macOS 12.6
在将VS代码版本升级到1.32.1之后,保存/自动保存不会触发自动热重加载。它以前很有魅力。
热重装仍然通过按热重装按钮工作。
根据颤振医生的说法,颤振似乎没问题:
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel beta, v1.2.1, on Mac OS X 10.14.2 18C54, locale hu-HU)
[✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3
body: const Center(
// Center is a layout widget. It takes a single child and positions it
// in the middle of the parent.
child: WebView(
initialUrl: "https://xxxx",
navigationDelegate: (navigation) {
return NavigationDecision.navigat
我完全迷路了。
上周,我在一个运行良好的项目中工作。
然后我开始做另一个项目,并将我的颤音版本升级到最后一个版本。
Running flutter doctor...
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.0.2, on macOS 12.3.1 21E258 darwin-x64, locale en-GB)
[✓] Android toolchain - develop for Android devices (Android SDK versio
在颤振升级到最新的稳定版本后,我无法在android模拟器中进行调试。我得到以下错误:
Launching lib/main.dart on sdk gphone x86 in debug mode...
lib/main.dart:1 ../../Developer/flutter/.pub-cache/hosted/pub.dartlang.org/google_maps_webservice-0.0.19/lib/src/utils.dart:61:27:错误:参数类型'String‘不能分配给参数类型'Uri’。
'Uri‘来自'dart:core’。返
升级到北极福克斯之后,我得到了以下错误,尽管模拟器正在运行,但有时会突然停止。这个错误是什么?我怎么才能摆脱这个?
我使用的是从cmd复制的以下内容:
> C:\Users\Debasis>flutter doctor Doctor summary (to see all details,
> run flutter doctor -v): [√] Flutter (Channel stable, 2.2.3, on
> Microsoft Windows [Version 10.0.19042.1165], locale en-IN) [√]
升级到颤音2.5让我犯了一个错误-
W/FlutterActivityAndFragmentDelegate( 4070): A splash screen was provided to Flutter, but this is deprecated. See flutter.dev/go/android-splash-migration for migration steps.
当第一次构建应用程序的时候。
我做了一些研究,发现原因是AndroidManifest.xml
For those who have difficulty finding this the path is -You