Failure [INSTALL_FAILED_INVALID_APK]

后端 未结 30 1512
庸人自扰
庸人自扰 2020-11-27 04:12

When I click to run a project I just created in Android Studio 0.2.10 and select my Android (connected by USB with debug by USB on) I get this error:

Waiting         


        
相关标签:
30条回答
  • 2020-11-27 04:41

    How to solve this issue:

    1. Install RootExplorer
    2. Create new tmp folder on SD card
    3. Long press on tmp folder, and select Link to this folder (last option in menu)
    4. Go to /data/local/ and tap button CREATE LINK from bottom
    0 讨论(0)
  • 2020-11-27 04:42

    I found another reason of this error. If you rooted your device access permissions of /data/local/tmp may be changed, so adb can't get access to it temp file. Solution is to create "tmp" folder on sdcard and create symlink to it in /data/local/ (via ADB shell or Root Explorer).

    0 讨论(0)
  • 2020-11-27 04:42

    Navigate to Run/Debug Configurations

    Click Run from the top Tab > Edit Configurations

    • Module: Select your App
    • Installation Options: Deploy Default APK
    • Ok

    0 讨论(0)
  • 2020-11-27 04:45

    By turning off the Instant Run solved my issue. Don't know any explanation till now. After migrating to android studio 3.0 it starts problem like this. Hope this helps someone in future.

    0 讨论(0)
  • 2020-11-27 04:45

    It looks like having a number after the dot was the culprit.

    I had the same issue with the following applicationId

    org.tony.stark.125jarvis
    

    Changing it to

    org.tony.stark.jarvis
    

    I was able to install the app to the android devices.

    0 讨论(0)
  • 2020-11-27 04:46

    i got similar issue once, what i observed was, package name in my Androidmanifest.xml was started with one empty space character. like " com.example.test" instead of "com.example.test"

    I removed all such invalid spaces from my manifest file, it solved my problem

    Edit 1: '-' in package name also cause same issue on some android versions

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