Tag Archives: instal apk

Installation failed with message Failed to finalize session : INSTALL_FAILED_INVALID_APK

problem:

modified some things yesterday, debugging show this error, before is to uninstall before installation, and then re-run it, but this time, run several times, the phone has also restarted several times, or error, a little bit close to crash.

reason:

is not clear

resolved:

method 1:

this morning I found the memory space of the phone was a little full, then I cleaned it up, and the debugging was successful again.

method 2:

there are other ways online, the above can not solve this you can try this:

click Build, click Clean Project, then click Rebuild Project, then run.

https://blog.csdn.net/qq_36826618/article/details/84638404

method 3:

File -> Settings… -> Build -> Debuger -> Instant Run-> Uncheck the first TAB to Enable Instant Run… .

reference: https://www.cnblogs.com/lihuawei/p/10516201.html

others:

another problem:

AndroidStudio 安装Gradle问题gradle project sync failed.Basic functionality(e.g.editing,debugging) will n

is a problem that I don’t understand very well, so I basically use the most direct solution every time:

create a new project. Gradle,. Idea, gradle. Build a copy of the new project folder to the current project folder. It is a good idea to make a backup copy before using, as repostories may differ in Gradle.build.

if not you can refer to the other: https://blog.csdn.net/runrun117/article/details/93311522