美文网首页Flutter基础入门
flutter真机测试 Traceback (most rece

flutter真机测试 Traceback (most rece

作者: 宁静1致远 | 来源:发表于2018-08-13 16:34 被阅读0次

    flutter安装完后,模拟器跑没任何问题,当真机测试时

    Traceback (most recent call last):

    File "<input>", line 1, in <module>

    File "/usr/local/Cellar/python@2/2.7.15_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/copy.py", line 52, in <module>

    import weakref

    File "/usr/local/Cellar/python@2/2.7.15_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/weakref.py", line 14, in <module>

    from _weakref import (

    ImportError: cannot import name _remove_dead_weakref

    因为网上资料较少,很是痛苦,其实这个不影响真机运营,但是每每运行都报错,真的不能忍。解决方案:终端输入 brew uninstall --ignore-dependencies python@2 就OK了,直接忽略掉他的报错,感觉瞬间世界清静了。

    相关文章

      网友评论

        本文标题:flutter真机测试 Traceback (most rece

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