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:
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.
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.
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.
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
You need disable "Use libusb backend" in preferences--> debugger
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With