Installation did not succeed. The application could not be installed. Installation failed due to: 'null'

て烟熏妆下的殇ゞ 提交于 2019-12-23 23:21:01

问题


I am trying to run my app on Android Studio 3.5. It throws an error while installing the app on the phone.

Installation did not succeed. The application could not be installed. Installation failed due to: 'null'

REAL DEVICE: XIAOMI REDMI S2


回答1:


I had the Same issue on a MAC, this is how I solve it, note: I was tried the method that mention @Manoj Kumar,

Un check this field in Preferences/Build,Execution,Deployment/Debugger




回答2:


1.Open run/debug configuration dialog:- Run> edit configurations.

  1. Navigate to You app > General > Installation Options > Install Flags.
  2. add install flags -r -t.

Note: This flags means adb install -r -t apk path

I hope this will help.




回答3:


When you connect the mobile, it starts in the charging mode. Simply change the mode to Transfer Mode (Transfer Media or photos mode).

Now install the app again and it will work.




回答4:


Restarting the device after enabling developer mode and allowing usb debugging did the trick for me.




回答5:


A simple (unintended) restart to the computer did it for me (I tried to run on emulator)




回答6:


In my case I was using third party library, I have removed that library from gradle and reinstall the app. Successful



来源:https://stackoverflow.com/questions/57770464/installation-did-not-succeed-the-application-could-not-be-installed-installati

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!