Failure [INSTALL_FAILED_INVALID_APK]

后端 未结 30 1620
庸人自扰
庸人自扰 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:27

    I had this issue and none of the above solutions worked for me.

    The reason is probably root version phone that has available quota or apk install permissions only at the sdcard.

    I fixed the issue using ADB (you'll need a rooted device):

    1. Connect your phone via USB
    2. Launch ADB using adb shell
    3. Switch to root mode using su
    4. create tmp folder in the sdcard: mkdir /sdcard/tmp
    5. cd /data/local
    6. create link the the folder in the sdcard: ln -s /sdcard/tmp tmp

提交回复
热议问题