Installation failed in android studio

心不动则不痛 提交于 2019-12-23 03:07:08

问题


I get this error message again and again when i try to run the android application on the emulator.

Installation failed with message Invalid File: F:\PSL2.0\app\build\intermediates\split-apk\debug\slices\slice_4.apk. It is possible that this issue is resolved by uninstalling an existing version of the apk if it is present, and then re-installing.

WARNING: Uninstalling will remove the application data!

EDIT: The project was devepoped on my project teammate's computer and giving this error on my pc, may be that's why its not working!


回答1:


  1. Click "Clean Build" from the Android Studio build options menu.
  2. Open a command prompt (Windows key + enter 'cmd' + Enter in Windows) and type adb kill-server, hit return, and then adb start-server, return
  3. If it still doesn't work, restart Android Studio, delete the emulator and create a new AVD



回答2:


unchecked this option::settings>build,execute,deployment>instant run>Enable instant run to hot swap code /resource change on deploy




回答3:


Disable instant run in settings>Build,Execution,Deployment>Instant run and disable it!



来源:https://stackoverflow.com/questions/43318676/installation-failed-in-android-studio

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!