在你的项目属性页面里面,把是否包含unsafe代码的选项选上 参考文章: 1. https://blog.youkuaiyun.com/szstephenzhou/article/details/39665673