Fastlane构建显示ProviderScope未找到。

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

Fastlane build saying that ProviderScope not found

问题

我尝试使用fastlane将应用发布到Firebase应用分发,并且当我运行应用程序时,它会抛出一个错误,说找不到ProviderScope。该应用程序是基于Riverpod状态管理构建的。

当我以调试或发布模式运行应用程序时,它完全正常工作。此外,我还创建了一个手动构建,它也神奇地完美运行。只是在Firebase应用分发方面出现问题。

英文:

I tried releasing the app to firebase app distribution using fastlane and when I run the app, it throws an error saying that ProviderScope is not found. The app has been made on top of Riverpod state management.

When I run the app in debug or release mode, it works absolutely fine. Furthermore, I also created a manual build an it also magically works perfectly. Just having issue with Firebase App Distribution.

答案1

得分: 1

正如我建议的,并且后来由Shrijan Regmi指出的,问题出在多个入口点,即存在多个不同的main.dart文件。而错误的入口点被用于构建。

英文:

As I suggested, and later as Shrijan Regmi pointed out, the problem was in multiple entry points, i.e. there are multiple different main.dart files. And the wrong entry point was used for the build.

huangapple
  • 本文由 发表于 2023年8月9日 16:16:40
  • 转载请务必保留本文链接:https://go.coder-hub.com/76865820-2.html
匿名

发表评论

匿名网友

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

确定