-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bug: Android app crashes during startup #2652
Comments
Also having the same issue, Splash screen also "flickers" (different issue, but could be related) |
Remove the android folder and add it again. That fixes it for me. Also better update to the latest capacitor |
I can't reproduce the crash, but I see those |
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Capacitor, please create a new issue and ensure the template is fully filled out. |
Bug Report
Capacitor Version
Installed Dependencies:
@capacitor/ios not installed
@capacitor/cli 1.5.2
@capacitor/core 1.5.2
@capacitor/android 1.5.2
Affected Platform(s)
Current Behavior
During app startup, the app crashes once, starts again and works fine from thereon. You don't notice the app crashing, rather than the splash screen turns completely white for a moment and comes back before revealing the app.
Expected Behavior
The app starts without crashing.
Sample Code or Sample Application Repo
https://github.com/dlehmhus/capacitor-android-example
Reproduction Steps
npm i && npm run build && npx cap open android
Other Technical Details
npm
: 6.12.1node
: v12.13.1device
: Samsung SM-G950FAndroid
: 8.0Other Information
The error part of the stacktrace starts with
Rejecting re-init on previously-failed class java.lang.Class<android.support.v4.view.ViewCompat$OnUnhandledKeyEventListenerWrapper>
The whole stacktrace can be found here: https://github.com/dlehmhus/capacitor-android-example/blob/master/stacktrace.txt
The text was updated successfully, but these errors were encountered: