小编Gum*_*dum的帖子

firebase 未正确初始化:Googleservice-Info.plist 未位于使用 VScode 的 MacOS 上

我正在使用 macOS Big Sur、Visual Studio Code 和当前稳定的 Flutter 版本。

\n
    \n
  1. 我已经搞定了 :
  2. \n
\n
flutter clean, rm -rf Pods Podfile.lock; \nflutter pub get; pod init; pod update; \npod install; turned it off and back on; \npulled it out and blew on it then stuck it back in\n
Run Code Online (Sandbox Code Playgroud)\n
    \n
  1. 我的 Podfile 已针对当前 ios 进行更新,并且我已将“GoogleService-Info.plist”文件复制到几乎每个目录,包括 Runner/ lib/ main、Flutter/ 等。

    \n
  2. \n
  3. 我已经重新启动了我的 mac 和 vs code 几次,检查了 pubspec.yaml 的准确性,从冻结状态重新运行自动生成的文件。

    \n
  4. \n
  5. 使用 Visual Studio 和 Xcode 中的 iPhone 12 模拟器编译 …

ios dart firebase visual-studio-code flutter

2
推荐指数
1
解决办法
5904
查看次数

Flutter web 404 没有 hash on apache no htaccess

我正在尝试在我的 Flutter 应用程序上启用直接 url 处理。我正在使用 Beamer,并且该应用程序可以按预期工作,并在应用程序模拟器内进行深度链接,并且通过 vscode 使用 chrome Web 浏览器模拟器时。

当我发布代码时,只有主页可以工作。直接访问url则不行。

当我切换回 /#/ 策略时,一切正常,我可以直接访问应用程序中的任何位置。

这意味着应用程序未加载,只有 Apache Web 服务器返回 404,因为它无法将 flutter jS 文件的 index.html 识别为 cgi。

不久前,我使用 php,有一种方法可以访问 url,而无需使用扩展名和 httpd.conf 设置中的覆盖。

有没有人在 apache web 服务器上为 web 编译的 flutter navigation 2.0 工作?

谢谢

apache dart flutter

1
推荐指数
1
解决办法
2437
查看次数

标签 统计

dart ×2

flutter ×2

apache ×1

firebase ×1

ios ×1

visual-studio-code ×1