颤振版本解决因新的颤振升级而失败

时间:2019-05-09 16:45:50

标签: flutter versioning

我最近升级了我的Flutter,以前它在每个软件包中都可以正常工作,但是现在由于我的项目未运行,现在有件事困扰着我。这是名为PURE_MIXPANEL的软件包的cos错误。

错误:

The current Dart SDK version is 2.3.1-dev.0.0.flutter-a0290f823c.       

Because pure_mixpanel 1.0.7 requires SDK version >=1.19.0 <=2.2.1 and no versions of pure_mi
xpanel match >1.0.7 <2.0.0, pure_mixpanel ^1.0.7 is forbidden.
So, because flutter_app depends on pure_mixpanel ^1.0.7, version solving failed.
Running "flutter packages get" in flutter_app...                         
pub get failed (1)

在互联网上,我关注了很多类似的事情:

  • 颤振升级
  • 颤动的频道主控,然后进行颤动升级
  • 颤抖的频道开发人员,然后进行颤抖的升级

因此它成功地升级了我的抖动,但提出了一个问题,即该软件包完全不受支持,但以前可以运行。

这是我的flutter doctor -v结果:

[✓] Flutter (Channel master, v1.5.9-pre.193, on Mac OS X 10.14.4 18E226, locale en-US)
    • Flutter version 1.5.9-pre.193 at /Users/alok/flutter
    • Framework revision 3a6acb8c25 (9 minutes ago), 2019-05-09 09:23:30 -0700
    • Engine revision 644db5a49c
    • Dart version 2.3.1 (build 2.3.1-dev.0.0 a0290f823c)


[✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
    • Android SDK at /Users/alok/Library/Android/sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-28, build-tools 28.0.3
    • Java binary at: /Applications/Android
      Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1248-b01)
    • All Android licenses accepted.

[✓] iOS toolchain - develop for iOS devices (Xcode 10.0)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 10.0, Build version 10A255
    • ios-deploy 1.9.4
    • CocoaPods version 1.6.0

[!] Android Studio (version 3.3)

PUBSPEC.YAML:

version: 1.0.0+1

environment:
  sdk: ">=2.0.0-dev.68.0 <3.0.0"

dependencies:
  flutter:
    sdk: flutter
  pure_mixpanel: ^1.0.7

网络上没有pure_mixpanel的升级版,这对我的项目很重要。

任何帮助将不胜感激。谢谢

2 个答案:

答案 0 :(得分:1)

您的SDK版本为2.3.1,pure_mixpanel的SDK为np.random.seed(0) df = pd.DataFrame({'label': np.random.choice([-1,0,1], size=1000, replace=True), 'year_of_experience': np.random.randint(0,10, 1000)})

检查:https://github.com/seenickcode/pure_mixpanel/blob/master/pubspec.yaml

答案 1 :(得分:-1)

我通过将 dart sdk 位置添加到 env 来修复我的 适用于 Windows C:\src\flutter\bin\cache\dart-sdk