在pubspec.yaml文件中获取flutter_google_places:^0.2.1插件中的错误,如下所示:我如何解决这类问题。
注意:包没有缩进
Pubspec.yaml第3列第18行上的错误:包可能不会将自己列为依赖项。flutter_google_places:^0.2.1
^
pubspec.yaml文件:
name: flutter_google_places
description: A new Flutter application.
# The following defines the version and build number for your ap
我在pubspec.yaml遇到了这个问题:
在这里,pubspec.yaml:
dependencies:
flutter:
sdk: flutter
cupertino_icons: ^1.0.2
pluto_grid: ^2.9.3
这是一个错误:
[pluto_grid] flutter pub get
Running "flutter pub get" in pluto_grid...
Error on line 37, column 3 of pubspec.yaml: A package may n
试图在我的两个iOS设备上运行这个应用程序,方法是执行flutter run -d all。但是,我得到了database is locked Possibly there are two concurrent builds running in the same filesystem location.错误。
我试过什么
flutter clean
flutter run分别
在终端的iPad上运行应用程序&在xCode上运行iPhone
因此,在我的两个iOS设备上同时运行颤振应用程序似乎有问题。
有什么解决办法吗?
我已经用ASP.net内核编写了API,我想用Flutter从它中获取数据,但是我的代码有如下错误:
E/flutter (10049): [ERROR:flutter/lib/ui/ui_dart_state.cc(157)] Unhandled Exception: HandshakeException: Handshake error in client (OS Error:
E/flutter (10049): CERTIFICATE_VERIFY_FAILED: unable to get local issuer certificate(handshake.cc:354))
E
我已经像描述的那样构建了到web的颤振。
flutter build web
服务颤振应用程序:
python3 -m http.server 80
这在localhost上有效,但一旦我用域名将其移到产品上,我就会得到空白的白屏幕和错误:
(index):92 Failed to load app from service worker. Falling back to plain <script> tag.
或者:
flutter.js:151 Loading from service worker timed out after 4000 milliseconds.
你知道怎
我不能将图像作为背景文件上传到容器中,我已经将图像添加到as文件夹中,并将其添加到pubspec.yaml中,并向我显示了该错误:
I/flutter ( 6664): ══╡ EXCEPTION CAUGHT BY IMAGE RESOURCE SERVICE ╞════════════════════════════════════════════════════
I/flutter ( 6664): The following assertion was thrown resolving an image codec:
I/flutter ( 6664): Unable to load
我现在正在做的是一个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
我已经看过类似的答案了,我不知道为什么我仍然有这个错误:
Severity Code Description Project File Line Suppression State
Error CS0263 Partial declarations of 'MainPage' must not specify different base classes MyNavDraw.Android (my path ...)\MainPage.xaml.cs 13 Active
MainPage.xaml.cs:
namespace MyNavD