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

报错:
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 Project

Click Build tab ---> Build APK

Run.

最后运行,即可!

你可能感兴趣的:(报错)