I'm having this same problem. Damn annoying. I'm on an LG Optimus S running HydroROM (VJ), my internal storage shows 107MB free, my sd card has 27.61GB free.
Google Maps and IMDB both download fine from the Google Play Store but upon install show the "package file invalid" message. Things I have tried:
- Uninstall both apps, reinstall to internal storage.
- Clear data / uninstall updates from both apps; reboot to recovery; wipe cache and dalvik cache.
- Clear data from Google Services Framework; reboot.
- Revert to earlier, working nandroid backup of HydroROM.
- Uninstall both apps, restore with Titanium Backup.
Open to other suggestions..... ?
There are some who swear that deleting 01mvdalvik from system/etc/init.d does the trick. I believe I tried it and got nowhere, but others have had success, so it's worth a shot, I guess.
The following advice, sort of the ultimate fix, is from AC member
MasterTec:
There is a script baked into CM7 that moves DALVIK CACHE to the Cache partition (where previously it was located in the Data partition). From what I understand this was done in order to open up more space in the Data partition.
The problem with this is that once you have a certain amount of apps installed the Cache partition gets filled up. Once there is no more room for Cache files then you get the "Insufficient Space" error. Once there is no more room for Dalvik-Cache to expand then you get the "Invalid Package" error.
I tried a "fix" for the OS that uses S2E to move Dalvik Cache to an SD-Ext partition: Moving data and dalvik-cache to sd card to fix market issues. This seemed to work great at first but then I rebooted and my phone kept crashing and only a handful of my apps would appear. For some reason some files got corrupted. I ended up having to restore Harmonia 2 from scratch to get things right again.
Trying that process a second time yielded the same results so it's pretty much a no-go for the OV... at least with Harmonia 2. However I found some information in the S2E thread that did prove to be useful. I figured out how to disable the CM7 script that moves the Dalvik Cache location to begin with!
So if you don't mind losing about half of your internal storage space (not much of an issue for me being I have almost all of my apps installed to SDCard) then you should be able to do the following to get things working correctly again:
1> Make sure USB Debugging is enabled in Applications/Development
2> Boot into recovery and MAKE A NANDROID BACKUP!!!
3> Clear Cache and Dalvik Cache from recovery
4> Go to Mounts and Storage from recovery and make sure all of the partitions are mounted
5> Connect your phone to your computer while it's still in recovery and issue the following commands from ADB Shell (if you do not know how to use ADB then you need to search through these forums to figure out how to set it up. The ZV9 update thread pretty much explains that process):
Code:
rm /system/etc/init.d/01mvdalvik
rm -r /cache/dalvik-cache/
reboot
6> Let the phone boot normally. It will take much longer than normal because it has to rebuild the Dalvik Cache in the Data partition. After that let it sit several minutes after booting to repopulate all of your apps. Once everything is up and running double check how much space you have left in internal storage and reboot yet again for good measure.
This worked for my OV 2.2.2 updated with ZV9 running Harmonia 2.