美文网首页
flutter 遇到错误汇总

flutter 遇到错误汇总

作者: 是我的是你的 | 来源:发表于2024-01-16 18:14 被阅读0次

    问题1:Could not signal service com.apple.WebKit.WebContent: 113: Could not find specified service

    解决:对我有用的是在info.pist文件中设置App权限

    <key>NSAppTransportSecurity</key>

        <dict>

            <!--Not a recommended way, there are better solutions available-->

            <key>NSAllowsArbitraryLoads</key>

            <true/>

        </dict>


    问题2:facebook的Invalid OAuth access token signature。

    错误代码

    打开https://developers.facebook.com/apps应用中心

    设置->高级  下的 客户端口令 copy 替换 iOS中info文件:

    <key>FacebookClientToken</key>

    <string>xxxxxxxxx</string>

    重新运行

    问题3: flutter doctor检查完之后出现:A network error occurred while checking "https://github.com/": Operation time out 错误。

    解决方式:Mac中通过 open /etc/hosts 打开hosts文件把下列全部复制到hosts文件中,保存替换之后重新flutter doctor。

    192.30.253.113 github.com

    192.30.252.131 github.com

    185.31.16.185 github.global.ssl.fastly.net

    74.125.237.1 dl-ssl.google.com

    173.194.127.200 groups.google.com

    192.30.252.131 github.com

    185.31.16.185 github.global.ssl.fastly.net

    74.125.128.95 ajax.googleapis.com

    192.30.255.112  github.com git

    185.31.16.184 github.global.ssl.fastly.net

    192.30.253.112    github.com

    192.30.253.119    gist.github.com

    151.101.184.133    assets-cdn.github.com

    151.101.184.133    raw.githubusercontent.com

    151.101.184.133    gist.githubusercontent.com

    151.101.184.133    cloud.githubusercontent.com

    151.101.184.133    camo.githubusercontent.com

    151.101.184.133    avatars0.githubusercontent.com

    151.101.184.133    avatars1.githubusercontent.com

    151.101.184.133    avatars2.githubusercontent.com

    151.101.184.133    avatars3.githubusercontent.com

    151.101.184.133    avatars4.githubusercontent.com

    151.101.184.133    avatars5.githubusercontent.com

    151.101.184.133    avatars6.githubusercontent.com

    151.101.184.133    avatars7.githubusercontent.com

    151.101.184.133    avatars8.githubusercontent.com

    相关文章

      网友评论

          本文标题:flutter 遇到错误汇总

          本文链接:https://www.haomeiwen.com/subject/zbkhpdtx.html