Robolectric 4.0.2
xian
released this
10 Nov 01:35
·
4821 commits
to master
since this release
Robolectric 4.0.2 fixes several bugs in 4.0:
Bug Fixes
Resources.getXml()
fails with Android 9/aapt2
/Studio 3.2.1 (android.content.res.Resources$NotFoundException: Resource ID #0x7f090005
) resources [issue #4082].- Fake
ServiceInfo
doesn't containprocessName
, causingLeakCanary
failure [issue #4090]. - Java 10+ failure/
java.lang.NoClassDefFoundError: android/text/TextUtils
[issue #4085]. - Robolectric crashes when loading font from
Resources.getFont
orResourceCompat.getFont
[issue #3590]. - Test leakage —
ShadowSmsManager
is missing a resetter for static state [issue #3811]. java.lang.IllegalStateException - android.graphics.Canvas.__constructor__
[issue #4072].
Known Issues
- Robolectric 4 does not work on Windows [issue #3955].
- Android Gradle Plugin may report the following warning, which may be safely ignored:
WARNING: The option setting 'android.enableUnitTestBinaryResources=true' is experimental and unsupported.
. Android Gradle Plugin 3.3 will resolve this issue.
Use Robolectric:
testCompile "org.robolectric:robolectric:4.0.2"
Getting Started | Migrating | Report Issues. Enjoy!