-
Notifications
You must be signed in to change notification settings - Fork 1.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
v.5.1.0: Sending reports from Application.attachBaseContext causes a crash #636
Comments
Cannot reproduce. SenderService should not be called in init anyway. Please detail your setup. |
It does when there are unsent crash reports. Here's the full stacktrace:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Since 5.1.0, ACRA uses
JobIntentService
forSenderService
. However,JobIntentService.CompatWorkEnqueuer
(for pre-Oreo devices) constructor does this:as result,
mContext
isnull
, so everything else fails. This is probably an issue with the support library itself, but for ACRA, this means thatACRA.init
can't be called inApplication.attachBaseContext
anymore.Calling
ACRA.init
fromApplication.onCreate
instead makes everything work again.The text was updated successfully, but these errors were encountered: