Skip to content

Commit a53ebab

Browse files
runningcodeclaude
andauthored
docs(android): Add Paparazzi workarounds for Gradle 9.2+ and AGP 9.x (#17615)
## DESCRIBE YOUR PR Add workarounds for known Paparazzi `2.0.0-alpha04` compatibility issues with newer Gradle/AGP versions: - Document the HTML reports workaround needed for Gradle 9.2+ ([cashapp/paparazzi#2111](cashapp/paparazzi#2111)) - Document the `android.newDsl=false` property needed for AGP 9.x - Update the Gradle compatibility column from "9.1.x or 9.2.x" to "9.1+" Here's what this looks like: <img width="1186" height="419" alt="image" src="https://github.com/user-attachments/assets/f9723824-0ad2-4ce3-a26e-ae92434ae702" /> https://sentry-docs-git-no-paparazzi-gradle-9-workarounds.sentry.dev/platforms/android/snapshots/ ## IS YOUR CHANGE URGENT? Help us prioritize incoming PRs by letting us know when the change needs to go live. - [ ] Urgent deadline (GA date, etc.): - [ ] Other deadline: - [x] None: Not urgent, can wait up to 1 week+ ## SLA - Teamwork makes the dream work, so please add a reviewer to your PRs. - Please give the docs team up to 1 week to review your PR unless you've added an urgent due date to it. Thanks in advance for your help! ## PRE-MERGE CHECKLIST *Make sure you've checked the following before merging your changes:* - [ ] Checked Vercel preview for correctness, including links - [ ] PR was reviewed and approved by any necessary SMEs (subject matter experts) - [ ] PR was reviewed and approved by a member of the [Sentry docs team](https://github.com/orgs/getsentry/teams/docs) Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent ee7b2b8 commit a53ebab

1 file changed

Lines changed: 21 additions & 1 deletion

File tree

docs/platforms/android/snapshots/index.mdx

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,29 @@ First, choose a Paparazzi version compatible with your project:
3939

4040
| Version | Gradle | compileSdk | JDK | compose-bom |
4141
| --------------- | -------------- | ---------- | --- | ------------ |
42-
| `2.0.0-alpha04` | 9.1.x or 9.2.x | 36 | 21+ | > 2025.05.00 |
42+
| `2.0.0-alpha04` | 9.1+ | 36 | 21+ | > 2025.05.00 |
4343
| `1.3.5` | 8.x or 9.x | ≤ 35 | 17+ | ≤ 2025.04.00 |
4444

45+
<Alert level="warning">
46+
47+
Paparazzi `2.0.0-alpha04` has known compatibility issues with newer Gradle versions:
48+
49+
- **Gradle 9.2+**: Test tasks fail because Paparazzi tries to configure HTML reports in a way Gradle no longer allows. Add this workaround to your module's `build.gradle.kts` ([cashapp/paparazzi#2111](https://github.com/cashapp/paparazzi/issues/2111)):
50+
51+
```kotlin
52+
tasks.withType<Test>().configureEach {
53+
reports.html.required = false
54+
}
55+
```
56+
57+
- **AGP 9.x**: Paparazzi doesn't support the new Android DSL yet. Add this to your `gradle.properties`:
58+
59+
```properties
60+
android.newDsl=false
61+
```
62+
63+
</Alert>
64+
4565
Then apply the plugin:
4666

4767
```kotlin

0 commit comments

Comments
 (0)