Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

what is the latest version?? #39

Closed
juyao opened this issue Jul 25, 2018 · 9 comments
Closed

what is the latest version?? #39

juyao opened this issue Jul 25, 2018 · 9 comments

Comments

@juyao
Copy link

juyao commented Jul 25, 2018

I try to get the 0.0.10,but I cannot get it??where can I find the latest version for Dio??thanks

@wendux
Copy link
Contributor

wendux commented Jul 25, 2018

There are two ways to learn what's the latest version:

  1. From pub: https://pub.dartlang.org/packages/dio
  2. From the doc:

image

@juyao
Copy link
Author

juyao commented Jul 25, 2018

thank you!!

@juyao
Copy link
Author

juyao commented Jul 25, 2018

I have another question, if I have many requests at the same time,need I new many dio objects? or ,one object can do many requests at the same time?

@wendux
Copy link
Contributor

wendux commented Jul 25, 2018

Yes! one instance can do many requests. Most of time, you just need to create one instance to perform all requests. Only When you need different default config for different requests, you should create different instances, because different instance with different default config(Options) that you can set。

@juyao
Copy link
Author

juyao commented Jul 25, 2018

OK,I know, thank you very much!

@juyao
Copy link
Author

juyao commented Jul 25, 2018

when I changed the version to the latest version 0.1.7, I receieved the below error:
Running "flutter packages get" in flutter_wanandroid...
Because flutter_wanandroid depends on dio ^0.1.7 which doesn't match any versions, version solving failed.
pub get failed (1)
Process finished with exit code 1

this is the file of the dependencies for my project:
dependencies:
flutter:
sdk: flutter
cupertino_icons: ^0.1.0
dio: ^0.1.7

@zll33
Copy link

zll33 commented Jul 25, 2018

Hi I have a same problem as @yuyao comment.
when I updated dio version in pubspec.yaml file as 'dio: ^0.1.7'
Some error happened

/Flutter/flutter/bin/flutter --no-color packages get
Running "flutter packages get" in monitoring...
Because monitoring depends on dio ^0.1.7 which doesn't match any versions, version solving failed.
pub get failed (1)
Process finished with exit code 1

Could someone help me ? thank you.

@wendux
Copy link
Contributor

wendux commented Jul 26, 2018

@juyao @zll33 Please try again ! I have succeed just now in my box.

@tinvyhx
Copy link

tinvyhx commented Oct 23, 2018

The current Dart SDK version is 2.1.0-dev.1.0.flutter-ccb16f7282.

depends on dio >=0.0.2 <0.1.1 which requires SDK version >=1.20.1 <2.0.0, version solving failed.

pub get failed (1)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants