Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android app installation: Unknown failure (Failure - not installed for 0)

Tags:

android

adb

Application works fine on emulator, but I can't launch application on my device (Xiaomi Mi4). At first i seed dialog with such text:

Installation failed with message Failed to establish session. It is possible that this issue is resolved by uninstalling an existing version of the apk if it is present, and then re-installing.  WARNING: Uninstalling will remove the application data!  Do you want to uninstall the existing application? 

But after I agree - i see in log this message:

Launching app $ adb install-multiple -r <....> $ adb shell pm uninstall com.example.app.debug Unknown failure (Failure - not installed for 0) Error while Installing APKs 

I've rebooted device several times and plugged/unplugged it to computer, but nothing helped.

like image 783
porfirion Avatar asked Mar 28 '17 18:03

porfirion


People also ask

How do I fix unknown App not installed?

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.

Why App is not installing from APK?

By default Android allows installation only from the Play Store. In order to allow installation of apps from other sources, open the Settings app and locate "Install Unknown Apps" under Privacy/Security settings. Enable the permission for the app which you use to install your APK.

How do I fix an App not installed on Google Play?

Clear the Google Play Store data If cleaning the cache of the Google Play Store and Google Play Services doesn't resolve the issue, try clearing the Google Play Store data: Open the Settings menu on your device. Go to Apps or Application Manager. (This option might differ depending on your device.)

How to fix'Android app not installed'error?

The following steps illustrate how to fix the "Android App not installed" error in one click: Install Dr.Fone on your Windows. After that, launch it, and connect your Android to the computer. Select the "Android Repair" option and click "Start".

How to fix package installer not working on Android devices?

Open setting on your Android device. Look for the option called Apps or Manage apps and tap on it. Check for the Package Installer App under system Apps. You will find two option of Clear data and Clear cache.

How to fix APK not installing on Android?

10+ Methods to Fix APK Not Installing Error. 1 1. Change App Codes. You can make some changes in the version code or SDK to do so. This method also works on Firestick and Fire TV. 2 2. App Bundles APKs. 3 3. Disable Google Play Protect. 4 4. Sign the Unsigned App. 5 5. Reset All the App Preference. More items

What does “failure [not installed for 0]” mean?

Now , "Failure [not installed for 0]" is the error when i try to uninstall any app that already is uninstalled (OR) doesn't exist on the android, BUT again ,these apps those im facing error to uninstall are actually there in my phone.


1 Answers

For Redmi and Mi devices turn off MIUI Optimization and reboot your phone.

Settings > Developer Options > MIUI Optimization

like image 180
Chirag Shah Avatar answered Nov 10 '22 01:11

Chirag Shah