Run appears "Session 'app': Error Installing APK" the solution

Copyright Notice: Welcome to reprint, attach a link https://blog.csdn.net/generallizhong/article/details/90768089

Appear in a new project to import, or imported into Androidstudio Eclipse projects at runtime "Session 'app': Error Installing APK"

Solution:

1, first add debuggable true buildTypes in build.gradle app in the synchronous run it again


buildTypes {
    debug {
        debuggable true
    }

2, once again recompile, Invalidate Caches / Restart [then restart as] under clean projet, build project, as well as File directory;

3, if things run android phone is likely that these developers in the mobile phone option three columns (USB debugging, USB installation, USB debugging (security settings)) is not open it (check for open).

4, SDK build tools and other tools do not download the full, using sdk manager download;      

5, most likely adb port is occupied, in cmd

Command line, type adb kill-server

Then enter adb devices can restart the adb

Summary: Most of the first solutions can solve the problem, if not several other reference.

Guess you like

Origin blog.csdn.net/generallizhong/article/details/90768089