You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+9Lines changed: 9 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -28,6 +28,15 @@ Developers will need to ask the #android_chat channel in Slack for the treetrack
28
28
29
29
For development, select the build variant _dev_. This build variant is configured to allow trees to be added without a specific accuracy.
30
30
31
+
### ⚠️ JDK Compatibility for Robolectric Tests
32
+
33
+
Some test files — such as DashboardViewModelTest.kt and TreeTrackerDaoTest.kt — rely on the [Robolectric](https://robolectric.org/) testing framework, which is **not compatible with JDK 21**.
34
+
35
+
Since Android Studio ships with **JDK 21 by default**, these tests may fail to compile or run.
36
+
To resolve this, change the **Gradle JDK** in Android Studio to **OpenJDK 17.0.15 LTS**, which is compatible with Robolectric.
37
+
38
+
You can download it from the [Microsoft OpenJDK site](https://learn.microsoft.com/en-us/java/openjdk/download).
0 commit comments