Skip to content

Commit

Permalink
Add "The images taken from Roborazzi seem broken" FAQ
Browse files Browse the repository at this point in the history
  • Loading branch information
takahirom committed Mar 16, 2024
1 parent 44498e3 commit f1aa6fd
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1192,6 +1192,14 @@ roborazzi {
outputDir = "src/your/screenshot/folder"
}
```
### Q: The images taken from Roborazzi seem broken
**A:** First, please check if you are using the correct version of the Android SDK. Consider using API level 28 or higher because it seems that Robolectric Native Graphics doesn't work property on older SDK versions.
You can specify the SDK version like `@Config(sdk = [33])` or by using `robolectric.properties` with `sdk=33`.
If your images are mostly fine but there are some drawing issues like shadows or shape graphics, you can try using Robolectric's Hardware Rendering mode. Please refer to [this issue](https://github.com/takahirom/roborazzi/issues/255#issuecomment-1914783987).
</div>
### LICENSE
Expand Down
10 changes: 9 additions & 1 deletion docs/topics/faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,4 +93,12 @@ out [the issue](https://github.com/takahirom/roborazzi/issues/193#issuecomment-1
roborazzi {
outputDir = "src/your/screenshot/folder"
}
```
```

### Q: The images taken from Roborazzi seem broken

**A:** First, please check if you are using the correct version of the Android SDK. Consider using API level 28 or higher because it seems that Robolectric Native Graphics doesn't work property on older SDK versions.

You can specify the SDK version like `@Config(sdk = [33])` or by using `robolectric.properties` with `sdk=33`.

If your images are mostly fine but there are some drawing issues like shadows or shape graphics, you can try using Robolectric's Hardware Rendering mode. Please refer to [this issue](https://github.com/takahirom/roborazzi/issues/255#issuecomment-1914783987).

0 comments on commit f1aa6fd

Please sign in to comment.