Currently I\'m using Android Studio 2.0 and installing my APK into my Samsung device (S6). However, when rebuilding my code and running it again I receive the following erro
Restarting Android Studio worked for me.
I think the error happens when you disconnect the device when it is running your app from Android Studio.