Installation failed with message Invalid File: H:\Users\liangzijishu\AndroidStudioProjects\MyApplica

来源:互联网 发布:淘宝店铺书籍 编辑:程序博客网 时间:2024/06/11 02:01

报错:
Installation failed with message Invalid File: H:\Users\liangzijishu\AndroidStudioProjects\MyApplicationtextparent\app\build\intermediates\split-apk\debug\slices\slice_7.apk.
It is possible that this issue is resolved by uninstalling an existing version of the apk if it is present, and then re-installing.

国内很多网站查看报错,是查看不了的!只能翻墙出去找答案!

报错的起因就是因为:我用mac开发好了之后,复制到window上面来,点击编译,然后就报错:安装失败,无效的路径! 我找到当前的报错的路径,删掉已经存在的apk,发现还是不管用!

终极解决方案:

Click Build tab ---> Clean ProjectClick Build tab ---> Build APKRun.

最后运行,即可!

阅读全文
0 0