Because every version of flutter_audio_recorder depends on file ^5.0.4 and shared_preferences_windows >=2.0.0 depends on file ^6.0.0, flutter_audio_recorder is incompatible with shared_preferences_windows >=2.0.0.
And because shared_preferences 2.0.9 depends on shared_preferences_windows ^2.0
当我在flutter应用程序中添加共享首选项时,我开始收到这个错误。它以前是有效的,现在我得到了
Because <app_name> depends on shared_preferences >=0.4.0 which requires Flutter SDK version >=0.1.4 <2.0.0, version solving failed.
pub upgrade failed (1; Because <app_name> depends on shared_preferences >=0.4.0 which requires
我正在尝试将shared_preferences添加到一个颤振项目中。默认情况下,下载的版本0.5.7+3不是空安全的。
添加最新版本2.0.15将得到以下错误:
Running "flutter pub get" in platform...
Because shared_preferences >=2.0.10 depends on shared_preferences_windows ^2.0.1 which depends on path_provider_platform_interface ^2.0.0, sha
我在升级程序上有个问题,好像我无法构建我的应用程序,当涉及到不同版本的软件包时
这就是问题所在
Running "flutter pub get" in Mobile7Merge...
Because requests 3.3.0 depends on shared_preferences ^0.5.2 and no versions of requests match >3.3.0 <4.0.0, requests ^3.3.0 requires shared_preferences ^0.5.2.
我正在构建windows应用程序,在添加了firebase包并将应用程序连接到Firebase之后,我遇到了以下问题:
Unhandled Exception: MissingPluginException(No implementation found for method DocumentReference#set on channel plugins.flutter.io/firebase_firestore)
我尝试了这么多的解决方案,并在网上搜索,但不幸的是,所有的解决方案都适合Android,而不是Windows!
我工作的想法是将图像上传到firebase存储中,并将数据保存在防
我在我的颤振应用程序中使用了shared_preferences插件。从一开始(可能在颤振升级之后),它就开始抛出一个异常:
E/flutter (27778): [ERROR:topaz/lib/tonic/logging/dart_error.cc(16)] Unhandled exception:
E/flutter (27778): type '_InternalLinkedHashMap' is not a subtype of type 'Map<String, Object>' where
E/flutter (27778): _I
我正在使用shared_preferences:^0.5.6。当我在workmanager中调用共享首选项时,我得到了下面的错误。
Unhandled Exception: MissingPluginException(No implementation found for method getAll on channel plugins.flutter.io/shared_preferences)
我将来自firestore实例的一些数据存储在一个列表中,现在我想在屏幕上显示这些数据。 当我在终端中打印我的列表时,我看到以下内容: I/flutter (11351): [{num: 100, title: This is test 2}] 我定义了一个这样的列表: var list = new List(); 我正在点击一个按钮来获取数据。 RaisedButton(
onPressed: () async {
var documentReference = await Firestore.instance.colle
我试图在颤振材料应用程序中为玩家创建一个模型。我创建了一个名为“player”的类并实现了它。我编辑gradle文件,以便与firebase连接。我的代码出现了一些错误。所以请帮我解决这个错误。
误差
Error: The argument type 'Object Function()' can't be assigned to the parameter type 'Map<String, dynamic>'.
- 'Object' is from 'dart:core'.
- 'Map'
试图将audio_recorder作为依赖项添加到shared_preferences中会导致版本解析失败。
Because shared_preferences_windows 2.0.0 depends on file ^6.0.0 and no versions of shared_preferences_windows match >2.0.0 <3.0.0, shared_preferences_windows ^2.0.0 requires file ^6.0.0.
And because audio_recorder >=0.0.6 depends on fil
我试图安装alpha_vantage,得到了以下错误:
,因为每个版本的alpha_vantage_package都依赖于http ^0.12.0+4,而前端依赖于http ^0.13.4,所以alpha_vantage_package是被禁止的。因此,由于前端依赖于alpha_vantage_package ^1.0.0,版本解决失败。发布失败(1;因此,由于前台依赖于alpha_vantage_package ^1.0.0,版本解决失败)。出口代码1
这是我的pubspec.yaml文件:
name: front
description: A new Flutter project.
p
作为Shared_preferences包在flutter中的信息。
Wraps NSUserDefaults (on iOS) and SharedPreferences (on Android), providing a persistent store for simple data. Data is persisted to disk asynchronously. Neither platform can guarantee that writes will be persisted to disk after returning and this plugin must not b
共享首选项插件(shared_preferences:^2.0.6)
它得到了一个init实例错误,下面是错误堆栈跟踪:
aunching lib/main.dart on iPhone 12 Pro Max in debug mode...
package:travel_app/main.dart:1
Xcode build done. 22.3s
Connecting to VM Service at ws://127.0.0.1:59168/kc8UwLPVK5s=/ws
flutter: start
[
我创建了一个新的应用程序,当我运行它时,它是工作的,但是当我添加shared_preferences包时,我在运行它时得到了这个错误
FAILURE: Build failed with an exception.
* What went wrong:
Could not determine the dependencies of task ':shared_preferences:compileDebugAidl'.
> Could not resolve all task dependencies for configuration ':shared_pre
我正在研究一个应用程序的想法,在shared_preferences上遇到了一个问题。在尝试了几件事情之后,我无意中发现了一条关于堆栈溢出的帖子,我删除了这个应用程序,并重新安装了它。卸载应用程序后,我尝试运行
$ flutter run
再说一遍,但它没有建造。
Launching lib/main.dart on iPhone 13 mini in debug mode...
Running pod install... 937ms
CocoaPods' output:
↳
Prep
我尝试使用firebase_messaging 9.0.0在iOS上设置推送通知。在运行flutter pub get之后,我得到了如下输出 *Running "flutter pub get" in x-y-app...
Because firebase_messaging >=9.0.0 depends on firebase_messaging_platform_interface ^2.0.0 which depends on plugin_platform_interface ^2.0.0, fireb