Android Studio: Application Installation Failed

前端 未结 29 1999
清歌不尽
清歌不尽 2020-11-28 22:42

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 fai

相关标签:
29条回答
  • 2020-11-28 23:04

    In real device do below tasks..

    1.clean all cache memory.

    2.check the internal storage space (if space is just 500 mb free, then remove some data or app in the internal storage maintain at least 1 gb space.

    3.again do clean all cache memory.

    4.now goto android studio or eclipse click on app goto run select the device and run I hope app will install and it will run..!!!

    0 讨论(0)
  • 2020-11-28 23:04

    I have a Redmi K20, the following is MI, Redmi specific that I learned in a hard way

    How I ended up in the error: I uninstalled the debug app from the phone because my assets were not accessible (maybe I had faulty source code)

    Solution (steps that worked for me in sequence):

    1. Uninstall the app
    2. As per suggestion above by @Jayaprakash G and all, I turned off MIUI optimization
    3. I tried finding "Instant Run", but seems missing in Android Studio 3.6.2
    4. MI supports "Second Space", switch to it. You'll observe the app is still there. Again uninstall.
    5. Switch space back to original again. By any chance, if you see the same app in frequently used app in the app drawer, again uninstall.
    6. Try to compile and run the app from Android Studio and let it show in the app phone (Error 3 will be still there, but installation will succeed).
    7. Clean the project, close Android Studio
    8. Start Android Studio, now everything will work as normal without the Error 3
    0 讨论(0)
  • 2020-11-28 23:06

    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!!

    0 讨论(0)
  • 2020-11-28 23:06

    For me it only started working after I rebooted device (Motorola-Nexus-6).

    (I also tried to clean, disable "instant run", reopen Android Studio, verified installed applications to be sure there are no clashes, disable and reenable Debug mode in phone, reconnect USB cable)

    0 讨论(0)
  • 2020-11-28 23:07

    The solution for me was : (in a Huawei)

    • Android Studio -> Build -> Clean Project
    • In the phone -> go to Phone Manager -> Cleanup and Optimize
    0 讨论(0)
  • 2020-11-28 23:08

    Disable Instant Run

    Preferences > Build, Execution, Deployment > Instant Run

    Source: comment by @user77309

    0 讨论(0)
提交回复
热议问题