https://github.com/nimblehq/robolectric.shadows-supportv4
Clones of robolectric.shadows-supportv4 supports AndroidX
https://github.com/nimblehq/robolectric.shadows-supportv4
android androidx robolectric shadows support-v4
Last synced: about 1 month ago
JSON representation
Clones of robolectric.shadows-supportv4 supports AndroidX
- Host: GitHub
- URL: https://github.com/nimblehq/robolectric.shadows-supportv4
- Owner: nimblehq
- License: mit
- Created: 2018-11-24T17:41:38.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-11-26T05:33:00.000Z (over 7 years ago)
- Last Synced: 2025-11-11T20:43:36.787Z (7 months ago)
- Topics: android, androidx, robolectric, shadows, support-v4
- Language: Java
- Size: 140 KB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# robolectric.shadows-supportv4
Clones of robolectric.shadows-supportv4 supports AndroidX
[](https://jitpack.io/#nimbl3/robolectric.shadows-supportv4)
`robolectric-base` supports androidx, but `robolectric:shadows-supportv4` still doesn’t https://github.com/robolectric/robolectric/issues/3985, so can not use `SupportFragmentController` or something else in `shadows-supportv4`. **While waiting for official support from robolectric team**, this clones of `robolectric:shadows-supportv4` was made for supporting current tests using `robolectric:shadows-supportv4` works **without any changes** in test codes.
## usages
Instead of using `"org.robolectric:shadows-supportv4:$robolectric_version"`, change to `"com.github.nimbl3:robolectric.shadows-supportv4:LATEST_VERSION"`. Check `LATEST_VERSION` from JitPack badge.
## troubleshooter
- If still meet the error like this https://github.com/robolectric/robolectric/issues/3981. Try `Invalidate Cache and Restart` your Android Studio https://github.com/robolectric/robolectric/issues/3981#issuecomment-438199489, then re-run the test.