问题
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.
- Navigate to You app > General > Installation Options > Install Flags.
- 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