Android Studio: Application Installation Failed

前端 未结 29 2001
清歌不尽
清歌不尽 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:08

    This problem cause to me because of the project path . Y:\Example&SourceCode with & sign So i change the Project path to another one without special characters. Now It is Fine.

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

    Recently I also find the same problem and there some reasons behind this but I am giving you 3

    1. In your phone in the setting go to "Developer Option" and enable USB debugging
    2. Also, check the "Install via USB" is also on in Developer Option itself.
    3. In Android Studio go to File -> Settings -> Build, Execution, Deployment -> Instant Run and uncheck the Enable Instant Run

    It must work.

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

    Uninstalling from AVD worked for me. After reinstalling it worked

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

    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
    
    0 讨论(0)
  • 2020-11-28 23:14

    This happens when your app is using any library and there is also an app installed in your device that is using the same library. Go to gradle and type:

    android{
    defaultConfig.applicationId="your package"
    }
    

    this will resolve your problem.

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

    I was having the same error, but i fixed it after reinstalling the HAXM. This problem is caused because of the virtual device not starting properly. If your device keep showing on screen "Android" or the screen is black, it have not started yet, you have to wait more for it to start properly, then it shall run. If it is too slow, maybe you should find a way to accelerate the Android Virtual Device (AVD). The Intel computers have the HAXM (hardware-accelerated-execution-manager).

    In my computer was not starting because of the HAXM not working, I fixed it by reinstalling the HAXM, downloading it from the intel website: "https://software.intel.com/en-us/android/articles/intel-hardware-accelerated-execution-manager"

    Then i set the HAXM max memory to 1536MB in the installation, for not having the problem of this other post, that you maybe have and i was having too: "HAXM configuration in android studio"

    After all done, it worked fine.

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