Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Installation failed due to: 'null' - Android Studio 3.5

I have updated Android studio to 3.5, ever since I am running into an APK installation problem. This is the only log it shows:

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

This happens when trying to install APK on a real device. If I uninstall the app from the device and then rerun the build, it installs only one time and then it keeps throwing this error on the next installation. It runs fine on an emulator but I can not use an emulator for everything.

What I have tried:

  • Deleted Android Studio configuration file.
  • Deleted Gradle files from the project.
  • Invalidated and reset caches.
  • Cleaned/rebuilt the project.
  • Looked for similar problems Stackoverflow(nothing matches my problem)
  • Clean installed(Removed all files including SDKs) Android Studio 3.5

Update

I installed Linux Mint on my machine and tested the AS 3.5 there, for some reason everything is working fine even for Android 7 and below devices.

Previous OS: Windows 10 1903

Current OS: Linux Mint 19.2

I reckon this problem may be originating from Windows machines.

like image 389
Taseer Ahmad Avatar asked Aug 21 '19 10:08

Taseer Ahmad


People also ask

Why is my Android Studio app not installing?

The Android app not installed error can be combated after resetting app permissions. Go to Settings > Apps > Reset App Preferences/Reset Application Permissions. After this, third-party software can be installed on your device.

How do you fix installation did not complete successfully see the IDE log for details?

It was a permission issue on the SDK installation folder. In Tools -> Android -> SDK manager there is the SDK installation folder at the top of the window. Just do a chmod 777 -R on this folder, problem solved. Save this answer.


2 Answers

Open Run/Debug Configuration dialog (Windows: Run > Edit Configurations)

edit You app > General > Installation Options > Install Flags .

add install flags -r -t.

This flags means adb install -r -t apkpath

screen pic

like image 56
胡晟昊 Avatar answered Sep 29 '22 10:09

胡晟昊


You need disable "Use libusb backend" in preferences--> debugger enter image description here

like image 28
Houssin Boulla Avatar answered Sep 29 '22 11:09

Houssin Boulla