Why is my apk fail to open?

Your app runs into a runtime error while starting. The problem could be an extension, which has not been upgraded to SDK 31. There also might be other reasons Therefore

You also can use logcat to find out more

but only if your project does not use paid extensions

Taifun