INSTALL_FAILED_INVALID_APK error with debug version code 1 inconsistent with 0

陌路散爱 提交于 2019-12-05 12:27:32

The trouble maybe caused by Instant Run feature of new Gradle.

Try disable Instant Run by going into File > Settings > Build, Execution, Deployment > Instant Run

Some strange circumstances might cause this. That works for me:

Menu "Build" > "Rebuild Project"

Then run app on device or emulator, and error goes away.

I have this once every so many build, I wait a few moments and then run it again. In 90% of the situations it works after that.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!