Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Installation failed with message Invalid File

People also ask

How do I fix app not installed as package is invalid?

To do this: Go to settings > Apps > Package Installer > Click Clear Cache and Data. After restarting your phone and then check if the problem is fixed.

Why is my APK file not installing?

Why APK won't install on Android? First, make sure that your Android version supports the APK version you want to install. Also, remove the Play Store version of the app before installing an APK. Don't forget to check the storage space and permission to install apps from unknown sources.


Click Build tab ---> Clean Project

Click Build tab ---> Build APK

Run.


I found the solution go to

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

`


Just follow two steps

Step 1 : Build---> Clean

Step 2 : Build--> Build APK

Hope it works. Good luck guys


I solved it this way:

Click Build tab ---> Clean Project

Click Build tab ---> Rebuild Project

Click Build tab ---> Build APK

Run.


Hopefully, this should solve your problem.

Do follow the following steps.

1. Clean your Project

Cleaning the project

2. Rebuild your project

Rebuilding the project

3. Finally Build and Run your project


First, as already mentioned, try cleaning and rebuilding the project. If that does not work for you, try this:

Settings > Build, Execution, Deployment: Un-check Enable Instant Run to hot swap code...

This solved the problem right away for me.

P.S. I posted this answer since it's 2017 and I don't think this feature existed in 2014, so it wouldn't cause this problem.


Please follow the below steps File > Settings > Build,Execution,Deployment > Instant Run > Un-check (Enable Instant Run to hot swap code)

this is working for me

thanks