问题
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:
- Click "Clean Build" from the Android Studio build options menu.
- Open a command prompt (Windows key + enter 'cmd' + Enter in Windows) and type
adb kill-server
, hit return, and thenadb start-server
, return - 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