Skip to content

Commit

Permalink
Merge pull request #277 from takahirom/takahirom/add-faq-about-graphi…
Browse files Browse the repository at this point in the history
…cs-problems/2024-03-16

Add "The images taken from Roborazzi seem broken" FAQ
  • Loading branch information
takahirom authored Mar 16, 2024
2 parents 44498e3 + 28daa53 commit ffbb2e1
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1192,6 +1192,15 @@ 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`.
[https://robolectric.org/configuring/](https://robolectric.org/configuring/)
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-1972838571).
</div>
### LICENSE
Expand Down
11 changes: 10 additions & 1 deletion docs/topics/faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,4 +93,13 @@ 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`.
[https://robolectric.org/configuring/](https://robolectric.org/configuring/)

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-1972838571).

0 comments on commit ffbb2e1

Please sign in to comment.