Trying to install app on real device following instructions:- http://developer.android.com/tools/device.html. At end Android Studio giving error:
Session 'app': Error Installing APK
I guess the problem probably can be in my android device(it is chinese Doogee X5). It does not have a given USB Vendor ID in developer docs so I decided to follow instructions with random vendor ID from HTC.
I'm sure there is a way to run application on any android device, but yet I didn't find an answer on how to do that.
I'm running through Linux Ubuntu 14.04 LTS
In my case with Android 8.0(Oreo), no one of this solutions worked! If you have more than 1 user, then you should go to Settings->Applications->All Applications->Find the application and uninstall for all users! After this steps, it worked!
Usage of easily changing variable value will often happen in
build.gradle
(like the Date)You have to enable Developer options and enable USB Debugging:
http://www.androidcentral.com/how-enable-developer-settings-android-42
Inside
Developer Options
, enable USB DebuggingJust rebuild and clean project, then run project.
I changed my USB port and that fixed it for me.
Try using a different version of Gradle(stable version). To summarize: