Flutter rive_core缓存包出现错误:类’DependencySorter’是抽象的,无法实例化。

huangapple go评论76阅读模式
英文:

Flutter rive_core cached package gives error: The class 'DependencySorter' is abstract and can't be instantiated

问题

我在问题标题中遇到了错误。我期望的情况是制作一个iOS构建,并让代码在连接到我的MacBook的设备上运行。flutter doctor没有显示错误。

但实际上,我一直遇到这个错误:

Flutter rive_core缓存包出现错误:类’DependencySorter’是抽象的,无法实例化。

我尝试过的方法有:(尝试顺序不一)

flutter clean
删除pod文件并运行pod install
flutter pub cache clean
flutter pub cache repair
英文:

I have come across the error in the question title. What I expect to happen is that a iOS build is made and for the code to then run on a device connected to my macBook. flutter doctor gives no errors.

Instead of completing, I keep having this error:

Flutter rive_core缓存包出现错误:类’DependencySorter’是抽象的,无法实例化。

Things I have tried are: (Not in order of trying)

flutter clean
deleting pod files and running pod install
flutter pub cache clean
flutter pub cache repair

答案1

得分: 3

我需要更新rive版本到最新版本(在我们的情况下是0.11.2,从0.10.4),这也已经在依赖于这个项目的其他项目上完成了。

英文:

Turns out I needed to update the rive version to latest (in our case 0.11.2, from 0.10.4) this was also done on projects that this one depends on.

huangapple
  • 本文由 发表于 2023年6月5日 21:26:15
  • 转载请务必保留本文链接:https://go.coder-hub.com/76406901.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定