gpt4 book ai didi

flutter - 尝试运行应用程序 flutter 时未找到 AppLocalization 类

转载 作者:行者123 更新时间:2023-12-04 14:17:10 26 4
gpt4 key购买 nike

我的应用程序在 android 上运行良好,但是当我尝试在 iOS 上启动它时,我遇到了一个巨大的错误,并且主要提到了这一点

The getter 'AppLocalizations' isn't defined for the class '_home_mainState'. - '_home_mainState' is from '../../Documents/GitHub/pocketcarage-official/lib/Customer/ui/home_main.dart'. Try correcting the name to the name of an existing getter, or defining a getter or field named 'AppLocalizations'. frontWidget: _buildFrontWidget(AppLocalizations.of(context).translate("Tyres"), _foldingCellKey2, 2),



并且它不断在多个不同的使用位置提及相同的错误,但该类在那里

这是项目文件的屏幕截图

enter image description here

我尝试的是用 Xcode 而不是 android 构建,但仍然存在同样的问题,此外,像 firestorm 一样找不到额外的类或插件

我也尝试删除和创建 pod 文件
还尝试更新 pod

最佳答案

运行 flutter clean重建 Flutter 项目应该有助于在你的 iOS 构建中映射缺失的类。

关于flutter - 尝试运行应用程序 flutter 时未找到 AppLocalization 类,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59103098/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com