pub get failed Because circular_slider requires SDK version 2.12.0, version solving failed - flutter-dependencies

I am learning flutter developpment and would like to make an interface using Sleek Circular Slider
When I follow the instruction for adding it in my flutter project, I have an error message when I "pub get". Can you help me please ?
The error message:
The current Dart SDK version is 2.9.1.
Because circular_slider requires SDK version 2.12.0, version solving failed.
pub get failed (1; Because circular_slider requires SDK version 2.12.0, version solving failed.)
Process finished with exit code 1
Here is my YAML file
name: circular_slider
description: A new Flutter project.
publish_to: 'none' # Remove this line if you wish to publish to pub.dev
version: 1.0.0+1
environment:
sdk: ">=2.12.0 <3.0.0"
dependencies:
flutter:
sdk: flutter
sleek_circular_slider: ^2.0.1
cupertino_icons: ^0.1.3
dev_dependencies:
flutter_test:
sdk: flutter
flutter:
uses-material-design: true

It's ok, I uninstalled Flutter and Dart from Android Studio, then reinstalled them and I download and extract the last version of flutter, then replace the c:\flutter directory and everything is ok now

Related

How to modify Podfile in an Expo-Managed React Native project

I have implemented an app that uses react-native-branch and #config-plugins/react-native-branch with the expo-managed workflow but upon building with EAS in iOS (Expo Application Services), its throwing this error:
The Swift pod `ExpoAdapterBranch` depends upon `react-native-branch`, which does not define modules.
To opt into those targets generating module maps (which is necessary to import them from Swift when building as static libraries),
you may set `use_modular_headers!` globally in your Podfile, or specify `:modular_headers => true` for particular dependencies.
Is there a way to do this in expo-managed workflow?
Other details of our project:
Expo SDK: v44
react-native-branch: v5.0.0
#config-plugins/react-native-branch: v1.0.2
I finally get it to build in iOS without errors by updating my react-native-branch version from 5.0.0 to 5.4.0 without any other changes to the plugin. However, expo is now giving off a warning saying that
Some dependencies are incompatible with the installed expo package version:
- react-native-branch - expected version: 5.0.0 - actual version installed: 5.4.0
If anyone has a better solution to this, I would gladly hear it. Thanks!

When I try to integrate google maps, I get an error

I try to integrate google maps in my flutter app, but I get the following error:
The current Flutter SDK version is 1.17.5.
Because restaurant_app depends on google_maps_flutter >=1.0.0 which requires Flutter SDK version >=1.22.0 <2.0.0,
version solving failed. pub get failed (1; Because restaurant_app depends on google_maps_flutter >=1.0.0 which
requires Flutter SDK version >=1.22.0 <2.0.0, version solving failed.)
I have inserted the api key into my `AndroidMainfest.xml` file as it was explained in the instructions.

How to update dart SDK to latest stable version in flutter

I would like to use dart SDK: ">=2.6.0 <3.0.0" with flutter. But my current version of dart used by Flutter is 2.5.0.
After tried flutter upgrade my flutter version is:
flutter --version
Flutter 1.9.1+hotfix.6 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 68587a0916 (3 months ago) • 2019-09-13 19:46:58 -0700
Engine • revision b863200c37
Tools • Dart 2.5.0
I have tried to download the latest stable release of Flutter SDK(2.6.1) from the link and replace it with the already available dart-sdk inside flutter > bin > cache > dart-sdk but after this steps I am getting below error:
Wrong full snapshot version, expected 'cb187597a166f2c0c64a200e22509ee3' found 'c8562f0ee0ebc38ba217c7955956d1cb'
Isolate creation failed
Is there any other way to solve these issues and upgrade dart-sdk in flutter?
Flutter only supports Dart 2.5 rigth now. There is now way to support 2.6. You will have to wait for a new Flutter release to support newer versions of Dart.

Dart SDK version error when getting dependencies

I'm trying to add the http and image Dart packages. After adding the dependencies in pubspec.yaml and attempt to "Get dependencies", I'm getting the version error.
I have attempted "Check for Update" in IntelliJ, reinstall Flutter and Dart plug in in IntelliJ, redownload Flutter, and ran "flutter upgrade" in Flutter Console, with no luck. It seems the Dart SDK that comes with Flutter has not been updated.
I was able to download later version of Dart SDK independently, but if I just drop the dart-sdk folder of a newer version into the Flutter folder, I get more error still.
How can I update the Dart SDK in the Flutter package, so I can add dependencies?
The reason was flutter console being in the beta channel, causing flutter to not upgrade to latest version. Fix was flutter channel dev then flutter upgrade in console.

Upgrading Titanium Android Module from 1.7.5 to 1.8.0.1

I already created a Titanium Android module for C2DM Push notifications in Titanium version 1.7.5. Recently I have upgraded my Titanium studio to 1.8.0.1, when I try to run the module I created, the build quits by saying following error message
[DEBUG] Looking for Titanium Module id: com.xxx.yyyy.zzzz, version: 0.1, platform: android
[DEBUG] module_id = com.xxx.yyyy.zzzz
[ERROR] The 'apiversion' for 'com.xxx.yyyy.zzzz' in the module manifest is not a valid value. Please use a version of the module that has an 'apiversion' value of 2 or greater set in it's manifest file
=================
Thanks
I got worked on Android.
apiversion: 2
to be added on the manifest file. For further more reference check this URL.