INSTALL_FAILED_INVALID_APK: /data/app/**.tmp/*_slice__ signatures are inconsistent 解决方法
目录
刚刚作项目碰到了签名之后程序安装失败的问题,记录一下解决方法。
实际上,错误的代码如下:
|
|
具体原因不明,暂时推测是因为签名之前残留部分 build 产物,而签名之后 build 时没有重新生成,导致签名出现冲突。 解决方法很简单:使用 Gradle 的 clean 任务清理整个项目,重新 build 即可。
刚刚作项目碰到了签名之后程序安装失败的问题,记录一下解决方法。
实际上,错误的代码如下:
|
|
具体原因不明,暂时推测是因为签名之前残留部分 build 产物,而签名之后 build 时没有重新生成,导致签名出现冲突。 解决方法很简单:使用 Gradle 的 clean 任务清理整个项目,重新 build 即可。