Android Studio: Application Installation Failed

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

    I solve this problem by: Enable Instant Run

    Settings>Build, Execution, Deployment>Instant Run

    0 讨论(0)
  • 2020-11-28 23:15
    android {
        buildTypes {
            debug {
                debuggable true
            }
    

    and In the AndroidManifest.xml file, add android:debuggable="true" to the <application> element.

    https://developer.android.com/studio/run/device.html#setting-up

    it works for me..

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

    Happened to me as well: At the first time, it says- Failure [INSTALL_FAILED_CONFLICTING_PROVIDER] At the second time, it says- DELETE_FAILED_INTERNAL_ERROR

    This because of the new 'com.google.android.gms' version 8.3.0

    Changing it back to 8.1.0 solved the problem in my case

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

    I also got same problem while generating signed APK. Just select APK signature scheme v1, not v2 (introduced in in Android 7.0). If you select v2 scheme it won't work on devices that use Android versions older than 7.0.

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

    if your "versionCode" in build.gradle file is less than the eralier version code then, your app wont install. Try to install with same "version code" or more than that.

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

    I have faced this issue since I have upgraded the build tools from 26.0.2 to 27.0.3. Reverting back, clean and rebuild solve the issue. Also I have degraded the gradle plugin version from 3.1.3 to 3.0.1 as the latest version was overriding the build tools to latest version.

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