diff --git a/README.md b/README.md index 5859ab29..fc1cb09c 100644 --- a/README.md +++ b/README.md @@ -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). ### LICENSE diff --git a/docs/topics/faq.md b/docs/topics/faq.md index 452f01e3..6692e0ce 100644 --- a/docs/topics/faq.md +++ b/docs/topics/faq.md @@ -93,4 +93,13 @@ out [the issue](https://github.com/takahirom/roborazzi/issues/193#issuecomment-1 roborazzi { outputDir = "src/your/screenshot/folder" } -``` \ No newline at end of file +``` + +### 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). \ No newline at end of file