Session 'app': Error Installing APK

2019-01-13 11:57发布

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

21条回答
Explosion°爆炸
2楼-- · 2019-01-13 12:35

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!

查看更多
We Are One
3楼-- · 2019-01-13 12:37

Usage of easily changing variable value will often happen in build.gradle(like the Date)

enter image description here

查看更多
何必那么认真
4楼-- · 2019-01-13 12:40

You have to enable Developer options and enable USB Debugging:

  1. Go to the settings menu, and scroll down to "About phone." Tap it.
  2. Scroll down to the bottom again, where you see "Build number." (Your build number may vary from ours here.)
  3. Tap it seven (7) times. After the third tap, you'll see a playful dialog that says you're four taps away from being a developer. (If only it were that simple, eh?) Keep on tapping, and poof, you've got the developer settings back.

http://www.androidcentral.com/how-enable-developer-settings-android-42

Inside Developer Options, enable USB Debugging

enter image description here

查看更多
一夜七次
5楼-- · 2019-01-13 12:40

Just rebuild and clean project, then run project.

查看更多
霸刀☆藐视天下
6楼-- · 2019-01-13 12:41

I changed my USB port and that fixed it for me.

查看更多
时光不老,我们不散
7楼-- · 2019-01-13 12:42

Try using a different version of Gradle(stable version). To summarize:

  • Check your gradle file for debuggable false/true
  • Invalidate caches & restart
  • Check your install location
  • Restart adb
查看更多
登录 后发表回答