APK Installation failed with message Invalid File
错误信息如下:
利用Android studio debug时安装不上apk,一直报错,错误日志如下:
1 | Installation failed with message Invalid File: D:\project\app\build\intermediates\split-apk\with_ImageProcessor\debug\slices\slice_0.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. |
解决方法
方案一
1 | Click Build tab ---> Clean Project |
方案二
打开settings
>build,execute,deployment
>instant run
>Enable instant run to hot swap code /resource change on deploy
(取消选中此项)
作者: Leon
来源: https://leondevlifelog.github.io
链接: https://leondevlifelog.github.io/2017/07/12/apk-install-faile-with-message/
本文采用知识共享署名-非商业性使用 4.0 国际许可协议进行许可