Why I can't add flutter dialogflow dependencies on pub spec.yml - flutter

I'm trying to implement chatbot on flutter and I'm trying to add dependencies "flutter_dialogflow: ^0.1.3" in the pub spec.yaml and got error. Can anyone help me how to fix it?

it seems you have run into a dependency incompatibility. if you have more than 5 or 6 dependencies it will be harder to find where this issue comes from. best option to will be,
Upgrade Flutter to the latest Version.
Upgrade all the dependencies to the latest Version. refer pub.dev when upgrading

Related

Error in Flutter while using Provider tool

I am building a basic app using flutter, in which I had to use provider, I added Provider dependencies in pubspec.yaml file but getting this error please help, I added the error below not able to fix this problem I have the latest flutter SDK
To solve this use lower version of Provider dependency as newer version of provider depends on newer version of Flutter SDK and your application's Flutter SDK is old one so it will have compatibility issues, So just degrade the version of dependency or you can also run pub outdated command and it will suggest you compatible version as per your SDK.

After cloning any flutter project I can not resolve dependencies?

I want to clone open source projects, I face a hole punch of errors after tapping pub get, all dependencies cannot be resolved and many of the code is out of date, so how can I overcome this?
Please use intl 0.17.0 to resolve the issue
This problem is due to the conflict between dependency versions.
You are using two dependencies that need different version of intl:
flutter_localization
openfluttercommerce
in your pubspec.yaml change the version of intl from 0.16.0 to 0.17.0. It may cause another conflict with other dependencies that may depend on 0.16.0 version of intl. If it accurs, you need to change the version of utilized dependencies to whatever need the same version of intl.
Whenever you clone the project from Github try to open it with flutter sdk version 1.17.0 or 1.22.4 after seeing the first commit of the project then the problem seems to be solved.
but here it seems that you got problem with two dependencies try to resolve that by not mentioning any version in yuml file.

Downgrade flutter package not similar to before the upgrade

Hello I tried to upgrade in_app_purchase 0.3.4+8 package, so that created some bugs due to somes changes. So I downgrade to return to a fonctionnal version but now it's not working... I only downgrade but it's like a modification in cache or other. How can I fix it ?
I try remove pubspeck.lock and flutter pub cache repair but no change
Thank tou

How can I resolve conflicting support library version?

I'm making a flutter app.
I'm trying to use two plugins.
image_picker: 0.4.10
firebase_storage: 1.0.3
But I got this error.
* What went wrong:
Execution failed for task ':app:preDebugBuild'.
> Android dependency 'com.android.support:support-v4' has different version for the compile (26.1.0) and runtime (27.1.1) classpath. You should manually set the same version via DependencyResolution
I understood It is a dependencies problem.
But these dependencies are written in plugin's build.gradle.
So if I fix the version string now, when I update plugin I will have same problem every time.
Do you know any good solution?
Thank you.

Usage of Websocket, STOMP in flutter application

While trying to work with STOMP, websockets, facing issue for "packages get" after updating pubspec with required stomp/websocket details. I have tried for stomp, stompdart, websocket none of them worked.
Error observed while running "packages get" is
"The current Dart SDK version is 2.1.0-dev.4.0.flutter-4eb879133a.
Because project_name depends on stompdart >=0.0.2 which requires SDK version >=1.5.0 <2.0.0, version solving failed.
pub upgrade failed (1)"
If I try to downgrade flutter version then it has thrown exception informing 'current project needs SDK version > 2.0.0
Please help to clear the issue or suggest some other way as I am using STOMP at server end.
had the same issue, it can be solved in two ways:
solved it by adding this to my yaml file :
dependency_overrides:
stomp: ^0.7.3
dependencies:
stomp: ^0.7.3
flutter:
sdk: flutter
using the dependency_overrides works.
Secondly by running "pub upgrade" in your project directory
https://github.com/rikulo/stomp/issues/18#issuecomment-435748215
Well, this is not a definitive answer, but it may help you.
I forked a chinese library that seems to work named JStomp and did some translations. Let me know if it work since I am also interested to be able to work with STOMP on Flutter.
Here's my fork: https://github.com/raedcran/flutter_jstomp