breautek commented on issue #127: URL: https://github.com/apache/cordova-plugin-screen-orientation/issues/127#issuecomment-1932226084
Based on the stacktrace, the screen orientation API ends up triggering a configuration change hook in the splashscreen plugin and the crash is actually in the splashscreen plugin. It's looking for a [drawable resource](https://github.com/apache/cordova-plugin-splashscreen/blob/5.0.x/src/android/SplashScreen.java#L83) which doesn't appear to be available (and obviously isn't guarded enough). The splashscreen plugin is no longer supported and has been replaced by android's splashscreen API available in cordova-android@11 or later and the current version doesn't have an android implementation at all. It would be suggested to update your project to the latest cordova-android platform release (currently cordova-android@12). It would be advisable to have a read on the [Cordova Android 11](https://cordova.apache.org/announcements/2022/07/12/cordova-android-release-11.0.0.html) & [Cordova Android 12](https://cordova.apache.org/announcements/2023/05/22/cordova-android-12.0.0.html) annoucements to learn about breaking changes that might affect your project. If for some reason you cannot upgrade your project, or is unwilling to at this time, then you can try ensuring that all splashscreen resources are available (see the [docs](https://github.com/apache/cordova-plugin-splashscreen/tree/5.0.x?tab=readme-ov-file#platform-splash-screen-image-configuration)) which should avoid the crash. I'm closing this issue because there isn't anything actionable in the screen orientation plugin to address this problem and the package in question is out of support for the android platform, so no updates will be made. Should you run into further issues while using the current release of cordova-android, feel free to reach out on [GitHub Discussions](https://github.com/apache/cordova/discussions) or create a new issue if you believed a bug has been found. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org