即将运行
在运行命令flutter pub get时,我得到了这个错误:
maciej@ola:~/workdir/flutter/flutter_twitter_clone$ flutter pub get
Because flutter_twitter_clone depends on flutter_link_preview ^1.5.6 which depends on http ^0.12.1, http ^0.12.1 is required.
So, because flutter_twitter_clone depends on http ^0.13.3, version so
我想从我的android模拟器中选择一个图像,然后将其上传到云存储。当我调用File image = await ImagePicker.pickImage(source: ImageSource.gallery);时,我得到的错误如下: MissingPluginException(No implementation found for method requestPermissions on channel flutter.baseflow.com/permissions/methods) 我尝试将摄像头权限放在AndroidManifest.xml文件中: <manifest x
我试图安装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
我是个新手,我正试图在我的项目中使用flutter_tts,但酒吧的get并不能解决这个问题。我已经在其他应用程序中使用了这个API,但是我不能再在那里使用它了。其他软件包也很好,就像flutter_tts和firebase_auth一样。任何帮助都将不胜感激。
pubspec:
name: aa
description: aa
publish_to: 'none' # Remove this line if you wish to publish to pub.dev
version: 1.0.0+1
environment:
sdk: ">=2.1
我刚开始接触flutter,我已经在我的系统上做了一些小项目,但当我从github克隆项目时,我无法构建和运行这些项目,并且我总是收到类似以下的错误: Because xml >=4.4.0 <4.4.1 depends on petitparser ^3.1.0 and xml >=3.7.0 <4.4.0 depends on petitparser ^3.0.0, xml >=3.7.0 <4.4.1 requires petitparser ^3.0.0.
And because xml >=4.4.1 <5.0.0-nullsafet
当我创建一个非常基本的flutter应用程序并第一次运行它时,它工作得很好,当我试图在我的pubspec.yaml文件中添加一些依赖项时,我的项目中没有出现错误,但当我通过'flutter run‘运行应用程序时,我陷入了困境
Running Gradle task 'assembleDebug'...
(This is taking an unexpectedly long time.)
而且这个应用程序从来没有运行过
这是我的pubspec.yaml文件
name: myPDFApp
description: A new Flutter
我试图在调试中运行我的应用程序,并得到一个错误':geolocator_android:compileDebugJavaWithJavac'. > Compilation failed;
这是我的包裹
environment:
sdk: '>=2.12.0-0 <3.0.0'
dependencies:
flutter:
sdk: flutter
# The following adds the Cupertino Icons font to your application.
# Use with the Cupe
加后
地点:^1.4.1
到pubspec.yaml中的依赖项:
dependencies:
flutter:
sdk: flutter
# The following adds the Cupertino Icons font to your application.
# Use with the CupertinoIcons class for iOS style icons.
cupertino_icons: ^0.1.2
rxdart: ^0.20.0
http: ^0.12.0
date_format: ^1.0.5
intl: ^0
我以前使用过audioplayers,没有问题,但我在一个新项目中遇到了一些问题,只是为了测试,错误语法如下:
FAILURE: Build failed with an exception.
* Where:
Script 'C:\Src\Flutter\Flutter\packages\flutter_tools\gradle\flutter.gradle' line: 367
* What went wrong:
A problem occurred evaluating script.
> Failed to apply plugin class 'F
Running with sound null safety
TypeError: Cannot read property 'app' of undefined
at Object.app$ [as app] (http://localhost:49841/packages/firebase_core_web/src/interop/core.dart.lib.js:42:101)
at new cloud_firestore_web.FirebaseFirestoreWeb.new (http://localhost:49841/packages/clo
我最近升级到了Flutter的最新版本。因此,我的应用程序无法加载并立即失败。错误似乎是由于颤动版本造成的。我尝试过降级,但没有成功。 以下是控制台的输出。 Running "flutter pub get" in source...
Because every version of flutter_test from sdk depends on vector_math 2.1.0-nullsafety.3 and fstore depends on vector_math 2.0.8, flutter_test from sdk is forbidden.
So, bec