Coder Social home page Coder Social logo

what is the latest version?? about dio HOT 9 CLOSED

cfug avatar cfug commented on June 20, 2024 2
what is the latest version??

from dio.

Comments (9)

wendux avatar wendux commented on June 20, 2024 1

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

from dio.

juyao avatar juyao commented on June 20, 2024

thank you!!

from dio.

juyao avatar juyao commented on June 20, 2024

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?

from dio.

wendux avatar wendux commented on June 20, 2024

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。

from dio.

juyao avatar juyao commented on June 20, 2024

OK,I know, thank you very much!

from dio.

juyao avatar juyao commented on June 20, 2024

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

from dio.

zll33 avatar zll33 commented on June 20, 2024

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.

from dio.

wendux avatar wendux commented on June 20, 2024

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

from dio.

tinvyhx avatar tinvyhx commented on June 20, 2024

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)

from dio.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.