Search code examples
androidperformanceandroid-studio

""app name" failed to start several times. Restore it by clearing its history?"


The error:

Failed to start several times. Restore it by clearing its history?

happens in some mobile manufacturers like OPPO, Samsung etc... And I found it only happens once the app is uninstalled then re-installed back through Play Store. It also happens after updating the app.

Error Message

It will only open up once I clear its data.

It should work as other apps, even if I uninstall and reinstall it back for testing purposes.

How can I solve this?


Solution

  • In AndroidManifest, change:

    android:allowBackup="false"