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条回答
淡お忘
2楼-- · 2019-01-13 12:43

just press Build button from menu bar and then press build app wait for it finished then press build APK and then run your emulator, it will work

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

Ensure you android device has enough memory to install the app. Sometimes it so happens working with multimedia app where the device storage keeps on increasing and you keep wondering about the error.

Therefore, free up some memory and try installing again!

查看更多
4楼-- · 2019-01-13 12:46

Try to remove the .idea folder and .gradle folder, then click Sync Project with Gradle Files, when the process finished, try to run app again.

Hope it works.

查看更多
家丑人穷心不美
5楼-- · 2019-01-13 12:46

Go to avd manager and click on Wipe Data of the device you want to run. Worked for me. The size of device on disk will reduce after wiping the data. I hope it helps someone.

查看更多
爱情/是我丢掉的垃圾
6楼-- · 2019-01-13 12:47

I fix this by delete the build folder then run project again

enter image description here

查看更多
一纸荒年 Trace。
7楼-- · 2019-01-13 12:50

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.) 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. Keep on tapping, and poof, you've got the developer settings back.

查看更多
登录 后发表回答