-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
No published analyzer available for language version 2.10.0 #42887
Comments
I'm having the same problem. I was following the problem reported in this issue: flutter/flutter#56779 (comment) but that was closed without my case in specific being solved, so I think I must continue here. More information can be found in the original issue that I linked, but to summarize, I'm trying to run Here is my setup: flutter doctor
pubspec.yamlname: myapp
description: myapp
publish_to: 'none'
version: 1.0.0
environment:
sdk: ">=2.7.0 <3.0.0"
dependencies:
flutter:
sdk: flutter
admob_flutter: ^0.3.4
cached_network_image: ^2.2.0+1
chewie: ^0.9.10
cupertino_icons: ^0.1.3
dio: ^3.0.9
dio_http_cache: ^0.2.8
firebase_analytics: ^5.0.16
firebase_core: ^0.4.5
flutter_mobx: ^1.1.0
flutter_rating_bar: ^3.0.1+1
hidden_drawer_menu: ^1.1.4
intl: ^0.16.1
mobx: ^1.2.1
package_info: ^0.4.1
provider: ^4.1.3
retrofit: ^1.3.4
shared_preferences: ^0.5.8
store_redirect: ^1.0.2
dev_dependencies:
flutter_test:
sdk: flutter
build_runner: ^1.10.1
flutter_launcher_icons: ^0.7.5
json_serializable: ^3.3.0
mobx_codegen: ^1.1.0+1
retrofit_generator: ^1.3.7+3
flutter:
uses-material-design: true
assets:
- assets/images/
fonts:
- family: CircularStd
fonts:
- asset: assets/fonts/CircularStd-Black.ttf
- asset: assets/fonts/CircularStd-Bold.ttf
- asset: assets/fonts/CircularStd-Book.ttf
- asset: assets/fonts/CircularStd-Medium.ttf
flutter_icons:
android: "launcher_icon"
ios: true
image_path: "assets/icons/app_icon.png" pubspec.lock
|
I solved it by switching the channel to Dev. |
Thanks for filing an issue. Analyzer 0.39.15 is available for language version 2.10.0. https://pub.dev/packages/analyzer/changelog |
Because build_runner 1.10.1 depends on analyzer 0.39.14 and no versions of build_runner match >1.10.1 <2.0.0, build_runner ^1.10.1 requires analyzer 0.39.14. the build runner is't compatible with analyzer 0.39.15 |
You now need the latest analyzer 0.39.15 😢 , so the fix for flutter stable breaks the latest flutter by not allowing the latest analyzer. This situation is really unfortunate in general... we can release a new version of build_runner which removes the pinning and sets a min sdk constraint of 2.10 to solve the problem I think. |
Note that in the meantime the fix is to pin either analyzer to 0.39.15 or build_runner to 1.10.1 |
This issue cannot be resolved in the way I suggested due to https://github.com/dart-lang/pub/issues/2557, I would not be able to publish the package |
I switch dart to dev channel, conforme the friend said above, its working. |
I believe that we have unblocked the fix for this from landing, and @natebosch has landed the fix from @jakemac53 . |
How do we get this to work with Flutter? If I require the SDK version 2.10.0 (which is the dev channel of dart), I get the error:
This is on the dev branch of Flutter. The workaround seems to be switching to the flutter master branch: Any help? |
hii I am having the exact same problem
|
@vaibhav135 This was the solution for us:
Allows us to run the unstable versions of flutter, but the stable version of dart. edit |
You should be able to use a |
why it is closed ? |
@mohammadne can you clarify what issue you are having? What does your |
Hello, we don't have the option to use unstable branches since we're using production apps; what would the solution be then? Keep in mind we have over 31 applications with hundreds of packages. Currently |
@OllyDixon can you share some more details? What does the pubspec look like, which fails to resolve with flutter 1.20.4 ? |
analyzer |
There has been some sort of tool or something proliferating I think which adds constraints like |
This worked for me: I had the same problem with Flutter 1.22.0 and Dart 2.10.0. Today updated my pubspec.yaml to
And deleted
Then flutter packages upgrade in console to force analyzer upgrade. It's working now. |
For me the fix was upgrading |
How? |
Keep in mind that this will break a lot of libraries. |
Thank you for taking the time to file an issue!
This tracker is for issues related to:
Some other pieces of the Dart ecosystem are maintained elsewhere. Please
file issues in their repository:
If you aren't sure, file the issue here and we'll find the right home for it.
In your issue, please include:
dart --version
)Missing some or all of the above might make the issue take longer or be
impossible to act on.
If you simply have a question, consider starting with Stack Overflow:
https://stackoverflow.com/questions/tagged/dart
For a real-time response, consider our Gitter channel:
https://gitter.im/dart-lang/sdk
The text was updated successfully, but these errors were encountered: