Failure [INSTALL_FAILED_INVALID_APK]

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

    There seems to be multiple reasons for this failure. For me, the issue was that in AndroidManifest file I had referenced a non-existing library(only in this particular device) using the 'uses-library' tag. After removing the library which this device did not have the apk got installed properly.

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

    Just remove old APK android/app/build/outputs/apk/debug/app-debug.apk in the folder. that's all. enjoy your coding...

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

    If you write android:extractNativeLibs="false" in AndroidManifest file. then change it to android:extractNativeLibs="true"

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

    If you have access to the device console (adb shell), then change permissions of following:

    1. chmod 777 /data/
    2. chmod 777 /data/local/
      You might also want to try copying the apk to /data/local/ in which case, make sure the set the right permissions to the apk also.
    3. chmod 777 /data/local/myapk.apk You can now attempt an installation by: pm install -r -d /data/local/myapk.apk (note the absolute path)
    0 讨论(0)
  • 2020-11-27 04:38

    For Flutter projects, with VS Code editor, go to the project source folder and delete the "build" folder and start debugging.

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

    I just had same error. I had year 2015 in app id. I replaced 2015 by fifteen and that solved it.

    Also, if you use Android Studio, you can try: Tools / Android / Synch Project with Gradle Files

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