- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
一周后,我做了flutter clean
和flutter pub upgrade
,在运行flutter run -d web-server
时,我得到了在5.2分钟后停止的错误。我非常确定错误的原因是flutter pub upgrade
。但是我不确定到底是哪个包引起了错误
我的pubspec.yaml文件看起来像这样
environment:
sdk: ">=2.7.0 <3.0.0"
dependencies:
flutter:
sdk: flutter
provider: ^4.3.2+1
provider_architecture: ^1.1.1+1
date_format: ^1.0.8
shared_preferences: ^0.5.7+1
firebase_storage: ^4.0.0
image_picker:
flutter_web_image_picker: ^0.0.2
path: ^1.7.0
mime_type: ^0.3.2
camera:
path_provider:
dcdg: ^2.0.1
intl: ^0.16.1
photo_view:
image_cropper:
flutter_swiper:
flutter_custom_dialog: ^1.0.20
awesome_dialog: ^1.1.3
timer_count_down: ^1.0.4+1
age: ^0.0.1
animator: ^2.0.1
# The following adds the Cupertino Icons font to your application.
# Use with the CupertinoIcons class for iOS style icons.
async_builder: ^1.2.0
get_it:
logger: ^0.7.0+2
# For designing
device_preview: ^0.4.3
carousel_slider: ^1.0.1
eva_icons_flutter: ^1.0.4
fleva_icons:
flutter_spinkit: ^4.1.2
sleek_circular_slider: ^1.1.0
flutter_rating_bar: ^1.1.0
searchable_dropdown: ^1.1.3
carousel_pro: ^1.0.0
dropdown_search:
animated_widgets: ^1.0.6
flutter_animator: ^2.1.0
lite_rolling_switch: ^0.1.1
dropdown_formfield: ^0.1.2
string_validator: ^0.1.4
image_picker_web_redux: ^1.1.0+2
# image_picker_web: any
universal_html: ^1.2.3
random_string: ^2.1.0
# Add the dependency for the FlutterFire plugin for Google Analytics
firebase_analytics: ^5.0.2
cloud_functions:
# Add the dependencies for any other Firebase products you want to use in your app
# For example, to use Firebase Authentication and Cloud Firestore
firebase_auth: ^0.18.0+1
cloud_firestore: ^0.14.0+2
firebase: ^7.3.0
firebase_auth_web:
otp: 2.2.1
flutter_otp: ^0.3.2
# To obtain R E D U X store for DB
flutter_redux: ^0.6.0
redux_thunk: ^0.3.0
http: ^0.12.0+4
redux_persist: ^0.8.4
redux: ^4.0.0+3
redux_epics: ^0.14.0
woocommerce: ^0.9.7
# The following adds the Cupertino Icons font to your application.
# Use with the CupertinoIcons class for iOS style icons.
cupertino_icons: ^0.1.3
#provider package
dev_dependencies:
flutter_test:
sdk: flutter
错误是这样的。看起来上面的文本未能编译,消息持续重复了5分钟。
/C:/flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.3/lib/src/generated/IWbemServices.dart:434:11: Error: 'Pointer' isn't a type.
Pointer<COMObject> pCtx, Pointer<IntPtr> ppEnum) =>
^^^^^^^
/C:/flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.3/lib/src/generated/IWbemServices.dart:434:44: Error: 'IntPtr' isn't a type.
Pointer<COMObject> pCtx, Pointer<IntPtr> ppEnum) =>
^^^^^^
/C:/flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.3/lib/src/generated/IWbemServices.dart:434:36: Error: 'Pointer' isn't a type.
Pointer<COMObject> pCtx, Pointer<IntPtr> ppEnum) =>
^^^^^^^
/C:/flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.3/lib/src/generated/IWbemServices.dart:435:15: Error: 'NativeFunction' isn't a type.
Pointer<NativeFunction<_CreateInstanceEnum_Native>>.fromAddress(
^^^^^^^^^^^^^^
/C:/flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.3/lib/src/generated/IWbemServices.dart:435:7: Error: Method not found: 'Pointer.fromAddress'.
Pointer<NativeFunction<_CreateInstanceEnum_Native>>.fromAddress(
^^^^^^^^^^^
/C:/flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.3/lib/src/generated/IWbemServices.dart:440:31: Error: 'Pointer' isn't a type.
int CreateInstanceEnumAsync(Pointer<Utf16> strFilter, int lFlags,
^^^^^^^
/C:/flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.3/lib/src/generated/IWbemServices.dart:441:11: Error: 'Pointer' isn't a type.
Pointer<COMObject> pCtx, Pointer<COMObject> pResponseHandler) =>
^^^^^^^
/C:/flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.3/lib/src/generated/IWbemServices.dart:441:36: Error: 'Pointer' isn't a type.
Pointer<COMObject> pCtx, Pointer<COMObject> pResponseHandler) =>
^^^^^^^
/C:/flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.3/lib/src/generated/IWbemServices.dart:442:15: Error: 'NativeFunction' isn't a type.
Pointer<NativeFunction<_CreateInstanceEnumAsync_Native>>.fromAddress(
^^^^^^^^^^^^^^
/C:/flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.3/lib/src/generated/IWbemServices.dart:442:7: Error: Method not found: 'Pointer.fromAddress'.
Pointer<NativeFunction<_CreateInstanceEnumAsync_Native>>.fromAddress(
^^^^^^^^^^^
/C:/flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.3/lib/src/generated/IWbemServices.dart:447:17: Error: 'Pointer' isn't a type.
int ExecQuery(Pointer<Utf16> strQueryLanguage, Pointer<Utf16> strQuery,
^^^^^^^
/C:/flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.3/lib/src/generated/IWbemServices.dart:447:50: Error: 'Pointer' isn't a type.
int ExecQuery(Pointer<Utf16> strQueryLanguage, Pointer<Utf16> strQuery,
^^^^^^^
/C:/flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.3/lib/src/generated/IWbemServices.dart:448:23: Error: 'Pointer' isn't a type.
int lFlags, Pointer<COMObject> pCtx, Pointer<IntPtr> ppEnum) =>
^^^^^^^
/C:/flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.3/lib/src/generated/IWbemServices.dart:448:56: Error: 'IntPtr' isn't a type.
int lFlags, Pointer<COMObject> pCtx, Pointer<IntPtr> ppEnum) =>
^^^^^^
/C:/flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.3/lib/src/generated/IWbemServices.dart:448:48: Error: 'Pointer' isn't a type.
int lFlags, Pointer<COMObject> pCtx, Pointer<IntPtr> ppEnum) =>
^^^^^^^
/C:/flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.3/lib/src/generated/IWbemServices.dart:449:15: Error: 'NativeFunction' isn't a type.
Pointer<NativeFunction<_ExecQuery_Native>>.fromAddress(
^^^^^^^^^^^^^^
/C:/flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.3/lib/src/generated/IWbemServices.dart:449:7: Error: Method not found: 'Pointer.fromAddress'.
Pointer<NativeFunction<_ExecQuery_Native>>.fromAddress(
^^^^^^^^^^^
/C:/flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.3/lib/src/generated/IWbemServices.dart:455:11: Error: 'Pointer' isn't a type.
Pointer<Utf16> strQueryLanguage,
^^^^^^^
/C:/flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.3/lib/src/generated/IWbemServices.dart:456:11: Error: 'Pointer' isn't a type.
Pointer<Utf16> strQuery,
^^^^^^^
/C:/flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.3/lib/src/generated/IWbemServices.dart:458:11: Error: 'Pointer' isn't a type.
Pointer<COMObject> pCtx,
^^^^^^^
/C:/flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.3/lib/src/generated/IWbemServices.dart:459:11: Error: 'Pointer' isn't a type.
Pointer<COMObject> pResponseHandler) =>
^^^^^^^
/C:/flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.3/lib/src/generated/IWbemServices.dart:460:15: Error: 'NativeFunction' isn't a type.
Pointer<NativeFunction<_ExecQueryAsync_Native>>.fromAddress(
^^^^^^^^^^^^^^
/C:/flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.3/lib/src/generated/IWbemServices.dart:460:7: Error: Method not found: 'Pointer.fromAddress'.
Pointer<NativeFunction<_ExecQueryAsync_Native>>.fromAddress(
^^^^^^^^^^^
/C:/flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.3/lib/src/generated/IWbemServices.dart:466:11: Error: 'Pointer' isn't a type.
Pointer<Utf16> strQueryLanguage,
^^^^^^^
/C:/flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.3/lib/src/generated/IWbemServices.dart:467:11: Error: 'Pointer' isn't a type.
Pointer<Utf16> strQuery,
^^^^^^^
/C:/flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.3/lib/src/generated/IWbemServices.dart:469:11: Error: 'Pointer' isn't a type.
Pointer<COMObject> pCtx,
^^^^^^^
/C:/flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.3/lib/src/generated/IWbemServices.dart:470:19: Error: 'IntPtr' isn't a type.
Pointer<IntPtr> ppEnum) =>
^^^^^^
/C:/flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.3/lib/src/generated/IWbemServices.dart:470:11: Error: 'Pointer' isn't a type.
Pointer<IntPtr> ppEnum) =>
^^^^^^^
/C:/flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.3/lib/src/generated/IWbemServices.dart:471:15: Error: 'NativeFunction' isn't a type.
Pointer<NativeFunction<_ExecNotificationQuery_Native>>.fromAddress(
^^^^^^^^^^^^^^
/C:/flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.3/lib/src/generated/IWbemServices.dart:471:7: Error: Method not found: 'Pointer.fromAddress'.
Pointer<NativeFunction<_ExecNotificationQuery_Native>>.fromAddress(
^^^^^^^^^^^
/C:/flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.3/lib/src/generated/IWbemServices.dart:477:11: Error: 'Pointer' isn't a type.
Pointer<Utf16> strQueryLanguage,
^^^^^^^
/C:/flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.3/lib/src/generated/IWbemServices.dart:478:11: Error: 'Pointer' isn't a type.
Pointer<Utf16> strQuery,
^^^^^^^
/C:/flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.3/lib/src/generated/IWbemServices.dart:480:11: Error: 'Pointer' isn't a type.
Pointer<COMObject> pCtx,
^^^^^^^
/C:/flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.3/lib/src/generated/IWbemServices.dart:481:11: Error: 'Pointer' isn't a type.
Pointer<COMObject> pResponseHandler) =>
^^^^^^^
/C:/flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.3/lib/src/generated/IWbemServices.dart:482:15: Error: 'NativeFunction' isn't a type.
Pointer<NativeFunction<_ExecNotificationQueryAsync_Native>>.fromAddress(
^^^^^^^^^^^^^^
/C:/flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.3/lib/src/generated/IWbemServices.dart:482:7: Error: Method not found: 'Pointer.fromAddress'.
Pointer<NativeFunction<_ExecNotificationQueryAsync_Native>>.fromAddress(
^^^^^^^^^^^
/C:/flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.3/lib/src/generated/IWbemServices.dart:488:11: Error: 'Pointer' isn't a type.
Pointer<Utf16> strObjectPath,
^^^^^^^
/C:/flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.3/lib/src/generated/IWbemServices.dart:489:11: Error: 'Pointer' isn't a type.
Pointer<Utf16> strMethodName,
^^^^^^^
/C:/flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.3/lib/src/generated/IWbemServices.dart:491:11: Error: 'Pointer' isn't a type.
Pointer<COMObject> pCtx,
^^^^^^^
/C:/flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.3/lib/src/generated/IWbemServices.dart:492:11: Error: 'Pointer' isn't a type.
Pointer<COMObject> pInParams,
^^^^^^^
/C:/flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.3/lib/src/generated/IWbemServices.dart:493:19: Error: 'IntPtr' isn't a type.
Pointer<IntPtr> ppOutParams,
^^^^^^
/C:/flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.3/lib/src/generated/IWbemServices.dart:493:11: Error: 'Pointer' isn't a type.
Pointer<IntPtr> ppOutParams,
^^^^^^^
/C:/flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.3/lib/src/generated/IWbemServices.dart:494:19: Error: 'IntPtr' isn't a type.
Pointer<IntPtr> ppCallResult) =>
^^^^^^
/C:/flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.3/lib/src/generated/IWbemServices.dart:494:11: Error: 'Pointer' isn't a type.
Pointer<IntPtr> ppCallResult) =>
^^^^^^^
/C:/flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.3/lib/src/generated/IWbemServices.dart:495:15: Error: 'NativeFunction' isn't a type.
Pointer<NativeFunction<_ExecMethod_Native>>.fromAddress(
^^^^^^^^^^^^^^
/C:/flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.3/lib/src/generated/IWbemServices.dart:495:7: Error: Method not found: 'Pointer.fromAddress'.
Pointer<NativeFunction<_ExecMethod_Native>>.fromAddress(
^^^^^^^^^^^
/C:/flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.3/lib/src/generated/IWbemServices.dart:501:11: Error: 'Pointer' isn't a type.
Pointer<Utf16> strObjectPath,
^^^^^^^
/C:/flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.3/lib/src/generated/IWbemServices.dart:502:11: Error: 'Pointer' isn't a type.
Pointer<Utf16> strMethodName,
^^^^^^^
/C:/flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.3/lib/src/generated/IWbemServices.dart:504:11: Error: 'Pointer' isn't a type.
Pointer<COMObject> pCtx,
^^^^^^^
/C:/flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.3/lib/src/generated/IWbemServices.dart:505:11: Error: 'Pointer' isn't a type.
Pointer<COMObject> pInParams,
^^^^^^^
/C:/flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.3/lib/src/generated/IWbemServices.dart:506:11: Error: 'Pointer' isn't a type.
Pointer<COMObject> pResponseHandler) =>
^^^^^^^
/C:/flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.3/lib/src/generated/IWbemServices.dart:507:15: Error: 'NativeFunction' isn't a type.
Pointer<NativeFunction<_ExecMethodAsync_Native>>.fromAddress(
^^^^^^^^^^^^^^
/C:/flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.3/lib/src/generated/IWbemServices.dart:507:7: Error: Method not found: 'Pointer.fromAddress'.
Pointer<NativeFunction<_ExecMethodAsync_Native>>.fromAddress(
^^^^^^^^^^^
Syncing files to device Web Server... 314,838ms (!)
Failed to compile application.
最佳答案
关于flutter - 运行flutter pub升级的错误在5分钟后停止,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63988924/
Rust 支持 pub和 pub(super) . pub使父模块可以访问项目...和pub(super)似乎也做同样的事情。我试过玩下面的例子,并交换 pub和 pub(super)似乎没有效果:
我正在尝试运行 this拖放 API。当我尝试运行 dart 文件(使用 dart 编辑器)时,出现以下错误: could not start pub serve or connect to pub
根据pub get docs pub get 和 pub Upgrade 之间的主要区别是: If a lockfile already exists, pub get uses the versio
我see函数的可见性可以在模块内声明为 pub(self)。这与没有 pub 属性的私有(private)函数有何不同?如果它们没有区别,为什么会存在这种语法? 最佳答案 pub(restricted
我正在运行 pub install 以便我可以使用作为 dart sdk 一部分的 intl 包(我需要使用 DateFormat 类)。我已经在我的项目中安装了其他包,例如 XML 解析器和演示文稿
假设我在 Rust 包中有这个文件层次结构: src/... src/m1/mod.rs src/m1/path/m2.rs 拥有以下行的实际区别是什么: pub mod path::m2; 在我的文
其中一个比另一个更安全吗? 最佳答案 id_rsa.pub 和 id_dsa.pub 是 id_rsa 和 id_dsa 的公钥。 如果您询问与 SSH 相关的问题,id_rsa 是 RSA key
pub 是 Dart 的包管理器。 Flutter 是一个使用 Dart 的移动应用 SDK。如何创建依赖于或以 Flutter 为目标的包? 最佳答案 要从 pub 包中声明对 Flutter 的依
id_rsa.pub 文件基本上是 Linux 主文件夹下 .ssh 文件夹中的一些加密文本,用于公钥加密。它使用 .pub 文件格式。但为什么这种文件格式也恰好是 Microsoft Publish
使用当前版本的angular.dart.tutorial , 使用 Chapter_04 对于“pub serve”,main.dart.js 是一个 42337 行的文件,示例运行良好。 对于“pu
假设我正在运行我自己的 pub-dartlang 实例对于私有(private)酒吧供稿;如何在 pubspec.yaml 中注明哪些软件包来自私有(private)提要与 pub.dartlang.
我们通过运行脚本来实现DART自动化,该脚本导航到项目文件夹(.yaml文件所在的位置)并运行“pub get”和“pub build”。它工作了一段时间,但现在(两种情况下)我们都得到了: Unha
我刚刚安装了 Dart Editor 并创建了一个简单的 Web 应用程序,当我单击运行时它显示此错误并且没有任何 react 。 “无法启动 pub 服务或连接到 pub” dart editor
当我尝试在 android studio 中打开大部分已下载的 flutter 应用程序时,它一直告诉我“Pub get”尚未运行,当我按下“获取依赖项”或升级依赖项时,它会向我显示该错误。我已经把a
在哪里可以找到用于搜索和列出已安装的打包版本和可用升级版本的命令行工具? 我想不出任何其他的软件包管理工具,它们不包含列出已安装版本或查找可用升级的命令,而无需实际升级。 例如,如果我的pubspec
前两天升级到 Flutter 2.0 开始面对 Execution failed for task ':app:compileFlutterBuildDebug'由于一些包裹。 然后我降级了,但错误仍
下面提供了相关的程序代码。我经常在开源项目中看到这样的代码,可以在Linux和Windows上运行。有人告诉我,这是为了避免编译警告。真的是这样吗? class Base { public:
我有一个带有简单测试代码的函数,例如: exports.helloPubSub = (event, context) => { const message = event.data
无法解析 URL“https://pub.dartlang.org”。错误 (69):无法“发布升级”flutter 工具。五秒后重试...(还剩 9 次尝试) 这是我创建或升级flutter时flu
我正在尝试制作一个脚本来控制农场中的 Android 设备,adb connect 通过 OpenSTF 建立连接。 .设备接受来自客户端的连接的要求之一是在 OpenSTF 中提供 adbkey.p
我是一名优秀的程序员,十分优秀!