Apk package not valid?

I can no longer install a native app (.apk) on my Android tablet: “Invalid package.” This morning, the same app was still installable. It is installable on my phone with One UI version 6.1, the tablet has One UI version 6.1.1, With the chrome debugger (F6) the app runs without any problem.

Try deleting the old app from the phone first - this has worked for me.

Thanks, this worked for me too

Resurrecting this one…

I have a need to be able to update an app WITHOUT deleting the previous version because we need the app user to retain ongoing localstorage (SQLite) data…
So here’s the strange thing…

My previous app version was 1.3.9001 (as defined in my config.xml)

My attempts to install the updated version (1.4.0001 or 1.4.0 or anything like that) failed miserably with the error about ‘invalid package’

I went as far as stripping back my config to the bare minimum to see if it was a conflicting plugin or setting…all with no progress…

As a last gasp… i changed the app version back to 1.3.9001 and hey presto… it built and installed over the old app perfectly!!

So…
Then i tried 1.3.9002 and that worked fine too!

The question is… what is it about the ‘syntax’ of the version number that is making 1.4.0 or 1.4.0001 fail?

Seems it’s not the content of the config file now… (apart from the version number!)

Any thoughts?
Thanks,
Neil

I tried to find something in the Android docs, but could find anything which addresses this. You might want to see if you have more luck than I did.

When designing apps, I try to make sure that the localStorage/SQLite data is backed up somewhere else, typically on a server. It’s too easily lost otherwise: phones can be dropped or lost. If the data is also on a server, it can be restored by logging into the server on a new phone and downloading the data again. This would also help in your situation.