我正在尝试安装Flame,但是每当我运行pub时,它就会给我一个非常长的错误“因为sdk中的flutter_test的每个版本都取决于xml 3.6.1,而平铺的> = 0.4.0取决于xml ^ 4.2 .0,来自sdk的flutter_test与> = 0.4.0的图块不兼容。”然后是解决错误错误消息的版本。
[√] Flutter (Channel stable, v1.17.5, on Microsoft Windows [Version 10.0.18363.900], locale en-US)
• Flutter version 1.17.5 at C:\Users\marci\Downloads\flutter
• Framework revision 8af6b2f038 (7 days ago), 2020-06-30 12:53:55 -0700
• Engine revision ee76268252
• Dart version 2.8.4
[√] Android toolchain - develop for Android devices (Android SDK version 30.0.0)
• Android SDK at C:\Users\marci\AppData\Local\Android\sdk
• Platform android-30, build-tools 30.0.0
• Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
• All Android licenses accepted.
[√] Android Studio (version 4.0)
• Android Studio at C:\Program Files\Android\Android Studio
• Flutter plugin version 47.1.2
• Dart plugin version 193.7361
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
[√] VS Code (version 1.46.1)
• VS Code at C:\Users\marci\AppData\Local\Programs\Microsoft VS Code
• Flutter extension version 3.12.1
[!] Connected device
! No devices available
! Doctor found issues in 1 category.
name: ggg
description: A new Flutter project.
publish_to: 'none'
version: 1.0.0+1
environment:
sdk: ">=2.7.0 <3.0.0"
dependencies:
flutter:
sdk: flutter
cupertino_icons: ^0.1.3
flame: ^0.24.0
dev_dependencies:
flutter_test:
sdk: flutter
flutter:
uses-material-design: true
答案 0 :(得分:0)
所以,当我尝试遇到相同的问题时。
这是我的解决方法:
在dependencies:
文件内的pubspec.yaml
部分中,更改没有任何版本标签的flame
部分:
dependencies:
flutter:
sdk: flutter
cupertino_icons: ^0.1.3
flame:
答案 1 :(得分:0)
我今天遇到了同样的问题,并查看了Flame Discord频道。
他们告诉我,他们与自己的lib有冲突,波动通道稳定。
建议更改为Flutter Channel Beta。
我这样做了,然后进行了Flutter升级,最后是Flutter Pub Get,它开始工作了。
终端命令
要检查您当前在哪个频道上
// Graph code:
PXUIFieldAttribute.SetVisible<MPLeaveRequest.unitsDays>(this.LeaveRequests.Cache, null, myBooleanProperty1);
PXUIFieldAttribute.SetVisible<MPLeaveRequest.unitsWeeks>(this.LeaveRequests.Cache, null, myBooleanProperty1);
PXUIFieldAttribute.SetVisible<MPLeaveRequest.unitsHours>(this.LeaveRequests.Cache, null, myBooleanProperty1);
更改为测试版频道
<px:PXLayoutRule ID="PXLayoutRule7" StartRow="True" runat="server" Merge="true" LabelsWidth="SM" ControlSize="M" />
<px:PXNumberEdit runat="server" DataField="NumberOfHours" ID="edNumberOfHours" CommitChanges="true" />
<px:PXTextEdit runat="server" ID="edHourUnit" SuppressLabel="true" Width="130px" DataField="UnitsHours"/>
<px:PXLayoutRule ID="PXLayoutRule8" StartRow="True" runat="server" Merge="true" LabelsWidth="SM" ControlSize="M" />
<px:PXNumberEdit runat="server" DataField="NumberOfDays" ID="edNumberOfDays" CommitChanges="true" />
<px:PXTextEdit runat="server" ID="edDayEdit" SuppressLabel="true" Width="130px" DataField="UnitsDays"/>
<px:PXLayoutRule ID="PXLayoutRule9" StartRow="True" runat="server" Merge="true" LabelsWidth="SM" ControlSize="M" />
<px:PXNumberEdit runat="server" DataField="NumberOfWeeks" ID="edNumberOfWeeks" CommitChanges="true" />
<px:PXTextEdit runat="server" ID="edWeekType" SuppressLabel="true" Width="130px" DataField="UnitsWeeks" />
要获取测试版
Flutter Channel