16
votes

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

18
Check this please : stackoverflow.com/questions/57589248/installation-failed-due-to-null-android-studio-3-5 - Filip123go
Its a different case. I have tried this. It does not work - Syed Arsalan Kazmi
What's the Android version? Have you tried applying other answers? - Taseer

18 Answers

35
votes

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

13
votes

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

enter image description here

I hope this will help.

6
votes

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

2
votes

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.

2
votes
  1. You has installed the app which has same package name with different debug signature file.
  2. The different signature file lead to the fault
  3. At first please uninstall the apk that you has installed with different signature file。
  4. Then you install the apk again ,You'll sucess!
2
votes

It may be because of your phone's memory is full. you can delete some data from your phone and then try. for me it worked.

1
votes

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

1
votes

Add this line to your '/gradle.properties':

# gradle.properties
android.injected.testOnly=false

Check https://gist.github.com/xujiaao/5fd127a72979cdc3c70dcc1324786f87 ,it work for me.

1
votes

Just use in this link. Disable Preference -> Build,Execution,Deployment -> Debugger -> Use libusb backend

Uncheck Use libusb backend

that's all. Enjoy your coding...

0
votes

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

0
votes

Chech to manifest file and search for a required library tag. And delete it. I solve it by this way.

0
votes

I was trying everything but nothing seemed to work. But then I suddenly noticed that my phone blocked installation, so I unchecked "reject this to install" and at the another try the security checkbox popup, asking for letting the installation. After allowing everything worked. Conclusion: I just were probably too angry that i didn't noticed this popup earlier.

0
votes

Just check in the AndroidManifest.xml file to make sure you are using permission and libraries that you need for your app. In some cases you may have wearable libraries and permissions in your AndroidManifest.xml file and yet you do not need them. This happened to me when I was adding more activities and Android Studio was creating them as Wearable Activities

0
votes

I'm trying every thing from the answers but only one solution is just free some space on your phone for proper install the debagged app.

0
votes

I had this problem at one point in time. the only solution that worked for me was to delete the SDK and download a new vision. It turned out that ADB had a problem and it was not able to detect my device. uninstalling the SDK and installing another resolved the problem for me

0
votes

Create a signed apk and drag that apk to the emulated device, that worked for me

-1
votes

For me ı had this problem i fixed it because i did not use Android studio Emulator i was using another one i fixed the problem when I enabled Developer Mode from Emulator and that is all for
I hope that can help some one like me
Regards

-1
votes

As I am currently using IntelliJ IDEA 2021, In order to work for me, I had to disconnect android device(Emulator) to Computer by USB and Free up some space on phone storage Lastly It was to refresh my device by restarting it(phone)

Again, I had to go to:

Settings, Debugger, And Check Hide debug Window on process termination

I hope this helps, if U are using IntelliJ IDEA, for instance.