When using Android Studio, use the real machine to debug, the operation is unsuccessful, and the error in the picture below is prompted ( Session 'app': Error Installing APKS ).
Generally speaking, there are several ways to solve this problem:
1. Recompile
2. Replug the data cable
3. Change the Studio settings and uncheck the first checkbox below
result:
4. Restart adb
1. Restart adb
Enter adb kill-server at the command line
then enter adb devices
2. Restart adb.exe
Task Manager closes the adb.exe process
Then enter adb devices on the command line