记录一个小问题
在项目真机测试的时候发现装不上去(小米8手机)
It is possible that this issue is resolved by uninstalling an existing version of the apk if it is present.and the re-installing
warning:uninstalling will remove the application data
一种情况是:
小米MIUI优化和Android studio的instant run(快速运行)功能有冲突
解决方法:关闭其中一个
关闭instant run
或者关闭小米手机的MIUI优化
第二种情况是:
项目之前已经编译过之后移动了项目的目录导致的问题
解决方法:clean project之后重新编译即可安装