Android Studio: Application Installation Failed

182,676

Solution 1

I'm Using Redmi 3s mobile. I got same problem.

Solution: This issue is common on Xiaomi phones running MIUI 8. This can resolved by turning off MIUI optimizations from Developer Options in Settings app. Then recompile the app and voila it works.

Settings --> Additional settings --> Developer options --> Turn Off MIUI optimization

Or

Settings --> Developer options --> Turn Off MIUI optimization

Solution 2

I got the same problem , just choose clean project then rebuild project from build menu , it's solved my problem

Solution 3

Disable Instant Run

Preferences > Build, Execution, Deployment > Instant Run

Source: comment by @user77309

enter image description here

Solution 4

Path: Android Studio Preference / Build, Execution, Deployment / Instant Run

Go to Android Studio Preference (for Mac) or Settings (for windows)

Choose Build, Execution, Deployment tab

Choose Instant Run

Uncheck Enable Instant Run to hot swap code/resources changes on deply (default enabled)

It works for me!!

Solution 5

Go to Settings > Applications. Probably you have the app still installed for other users (I had the same problem with a Moto G, I did not see the app among other apps, but it still was among my apps in Settings). Try to find it and remove for all users.

If the problem is this one you will find the app at the end of the list (in Settings > Apps > All)

All the apps marked as "Not installed" are still there and you can not install the same apps with Android Studio until they are there

Share:
182,676

Related videos on Youtube

Merlin
Author by

Merlin

Updated on November 17, 2020

Comments

  • Merlin
    Merlin over 3 years

    I've been trying to learn how to use Android Studio but when I attempted to run one of the sample programs I get this error message:

    Installation failed with message null. 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?

    I've tried to do this on 5 more sample programs and all of them give me this error. Does anyone know how to solve this?

    • IntelliJ Amiya
      IntelliJ Amiya over 8 years
      what is Do you want to uninstall the existing application?
    • IntelliJ Amiya
      IntelliJ Amiya over 8 years
      Please uninstall existing app
    • Merlin
      Merlin over 8 years
      Uninstall the existing package is only for the emulated Android Device, this does not solve the issue as I tried multiple times.
    • Sameer Donga
      Sameer Donga over 8 years
      Uninstall your old app or change app version from manifest file which was in last app which is installed in you device.
    • Halfacht
      Halfacht almost 7 years
      This eror happenes with a new installation of Android Studio aswell, while using the standard AVD.
  • Yaron Recher
    Yaron Recher about 8 years
    It was fixed on version 'com.google.android.gms' version 8.4.0
  • dsdsdsdsd
    dsdsdsdsd about 8 years
    I don't know if this solved my problem, but I was surprised to see several old test versions that I have been working with over the last 2 weeks still sitting in the list ... +1 ...
  • Zax
    Zax about 7 years
    This solution must be for all the MI Mobile phones. After turning off the MIUI optimizations and restarting the device i was able to debug the app on my Mi Note - 3 device.
  • GhostCat
    GhostCat over 6 years
    I seriously doubt that such problems can be "solved" this way.
  • Ado
    Ado over 6 years
    @GhostCat According all the answers for this problem,I think this prolem cause by AS build system or Custom Android OS.Clean,Rebuild,and disable Instant Run can effective.But my case solve by Enable Instant Run.and when I disable Instant Run ,the problem appears again. Enviroment:AS 3.0Beata5.Android 5.0.2
  • Shailendra Madda
    Shailendra Madda over 6 years
    But in my case it is turned off but still getting same issue.. I am using MIUI version 8.5.7.0, Any suggestion?
  • Shailendra Madda
    Shailendra Madda over 6 years
    When I trying to turn on Install via USB .. After loading it saying that "The mobile is temporary ristricted"
  • Makvin
    Makvin over 6 years
    @Shylendra Madda is there a mi phone you use to install app?
  • Shailendra Madda
    Shailendra Madda over 6 years
    Yes I am using Mi phone only
  • Mester Hassan
    Mester Hassan over 5 years
    D'ont work on BlueStacks! when I want to run my apps on it from Android Studio.
  • Ashik Azeez
    Ashik Azeez about 5 years
    I got this problem in Samsung J7 Core(Oreo)
  • btraas
    btraas about 4 years
    @AshikAzeez do you happen to have this app set up in the secure folder or dual messenger?