-4

I get this error when I open my app:

Installation failed with message Invalid File: C:\Users\wlgus\Desktop\Android\Asimplegame_ver4 (2)\app\build\intermediates\split-apk\debug\slices\slice_6.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!

Do you want to uninstall the existing application?

I don't know what I can do to fix this error. I already download apk but it didn't work.

halfer
  • 19,824
  • 17
  • 99
  • 186
viki
  • 1
  • 1
  • 2

3 Answers3

4

The answer to your question is right here.

Method 1 : Try to clean, rebuild, and run the app.

If it doesn't work

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

Bradzer
  • 146
  • 2
  • 10
2

This is likely because the debug key in android studio is different from the one you used to install the app previously.

Are you by any chance installing it from a different computer?

cd3
  • 117
  • 1
  • 9
0

Deleting the build directory (app/build) and then re-building the project worked for me. Try this too, if previous answers fail to resolve the issue.

Ananth
  • 2,597
  • 1
  • 29
  • 39