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
NoClassDefFoundError: android/app/ApplicationExitInfo on 4.6 #6589
Comments
Looks like some logic uses |
Here's minimal sample: https://github.com/jankowskib/ApplicationExitInfo |
Thanks. Looks like |
Ah thanks for catching this, it should be a quick fix.
…On Fri, Jul 2, 2021, 5:00 AM utzcoz ***@***.***> wrote:
Thanks. Looks like ShadowActivityManager uses ApplicationExitInfo added
from SDK 30 directly without running SDK checking to support
ShadowActivityManager#getHistoricalProcessExitReasons
<https://github.com/robolectric/robolectric/blob/b1c107851fe5a414251ef1b61c7dcc4d2c94506c/shadows/framework/src/main/java/org/robolectric/shadows/ShadowActivityManager.java#L293>.
cc @hoisie <https://github.com/hoisie> .
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#6589 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAA6U25WFIQFYJWEOUEHFVDTVWS5JANCNFSM47WKVDCQ>
.
|
Hi @jankowskib , the new commit will fix this problem. I have tested it with your sample project locally, and this problem disappeared. You can test it with later release. |
Just bumped the version to 4.6.1 which fixes this issue. |
Thanks! That was super-fast :) |
Description
When I lower sdk via
@Config
it'll causeNoClassDefFoundError
and test failsHowever If I bump compileSdk to 30 error does not happen
Steps to Reproduce
Set app's target/compileSdkVersion to 29
Add
@Config(sdk = [Build.VERSION_CODES.M])
(or any lower sdk than R) to a test caseRobolectric & Android Version
4.6, 29
The text was updated successfully, but these errors were encountered: