JakeWharton/ProcessPhoenix

random crash on Android 8.0.0

githubber2222 opened this issue · 4 comments

This crash happened now for first time, app is rolled out in play store and never any issue so pretty sure not a configuration issue.

Device: Galaxy A5(2017) running Android 8.0.0

Anyone ever seen this?

Stacktrace

Fatal Exception: java.lang.IllegalStateException: Unable to determine default activity for com.xxx. Does an activity specify the DEFAULT category in its intent filter?
       at com.jakewharton.processphoenix.ProcessPhoenix.getRestartIntent(ProcessPhoenix.java:89)
       at com.jakewharton.processphoenix.ProcessPhoenix.triggerRebirth(ProcessPhoenix.java:55)
       at com.xxx.MainApplication.restartApp(MainApplication.java:486)

Intent filter

<intent-filter>
    <action android:name="android.intent.action.MAIN" />
    <category android:name="android.intent.category.LAUNCHER" />
    <category android:name="android.intent.category.MULTIWINDOW_LAUNCHER" />
    <category android:name="android.intent.category.DEFAULT" />
</intent-filter>

forgot to mention: using V2.0.0

Try using
implementation 'com.jakewharton:process-phoenix:2.0.1-SNAPSHOT'

See if that works

maybe check this

Yep, dupe of linked issue. Fix is integrated and will be released soon.