DELETE_FAILED_INTERNAL_ERROR Error while Installing APK

后端 未结 30 3638
Happy的楠姐
Happy的楠姐 2020-11-28 18:43

I am using Android Studio 2.2 Preview. I am facing the issue

Failure: Install failed invalid apk

Error: While installing apk,

相关标签:
30条回答
  • 2020-11-28 19:01

    In Android Studio 2.3

    Disable Instant Run

    Settings>Build, Execution, Deployment>Instant Run

    Source: comment by @Shubham A.

    Edit: To Disable Instant run

    In Windows:

    1. Open Find Action: Control + Shift + A.
    2. Search instant run and open instant run under settings.
    3. Uncheck Enable instant run...

    In Mac: I don't have a mac, so try like

    1. Open Find Action: Command + Shift + A.
    2. Search instant run and open instant run under settings.
    3. Uncheck Enable instant run...
    0 讨论(0)
  • 2020-11-28 19:02

    Android studio mac/windows/linux:

    Steps in together (mac): Android Studio > Preferences > Build, Execution, Deployment > Instant Run > Uncheck : Enable Instant Run

    Steps in together (windows & linux): File > Settings > Build, Execution, Deployment > Instant Run > Uncheck : Enable Instant Run

    Steps in Detail :

    Steps 1: Studio > Preferences (for windows & linux got to File > settings > Build, Execution, Deployment and then same as mac)

    Steps 2: Preferences > Build, Execution, Deployment

    Steps 3: Build, Execution, Deployment > Instant Run

    Steps 4: Instant Run > Uncheck : Enable Instant Run

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

    For Xiaomi mobile

    1.Setting=>About phone=>tap 7 times on MIUI version
    
    
    2.Setting=>Developer options=> Developer options (ON)
    
                                => USB Debugging (ON)
    
                                => Install via USB(ON)
    

    Install via USB

    if

    enable to ON then

    Disable WiFi and switch install via USB on while you are connected through mobile data and under your xiaomi account. It works!

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

    I have solved this issue by:

    1. go to sdk folder/platform-tools by cmd ,type adb shell
    2. delete all the .apk files of your project from ../output-folder
    3. restart your emulator
    4. run your project.
    0 讨论(0)
  • 2020-11-28 19:05

    In Device Developer option

    Check Install Via USB is ON compulsory.

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

    Before you run any android app on a phone for the first time, make sure that you don't forget to set the Install via USB option. Otherwise the above error will be reported.

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