I added @Parcelize
to a class and all seems fine on Android 6+ but the app doesn’t install on older devices with Android 4.3 for example.
I have androidExtensions { experimental = true }
on gradle.
I have a sample project with just a simple class with one field and it fails to install on a couple of devices with Android 4.3. Removing the annotation and adding the Parcelable code works.
On install, I get a INSTALL_FAILED_DEXOPT. On subsequent installs I sometimes get a INSTALL_FAILED_UID_CHANGED, probably because of the previous error. A reboot usually clears the INSTALL_FAILED_UID_CHANGED and I get the the INSTALL_FAILED_DEXOPT error again.