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
{{ message }}
Repository navigation
Commit ac880d2
Browse filesBrowse the repository at this point in the historyBrowse files
[LUPIN-MOBILE] Correct the claim that Android Studio bundles JDK 21, because Studio 2026.1 bundles the 25.0.3 that breaks the build
The compatibility table said "Android Studio bundled JDK — JBR 21 (since
Ladybug 2024.2.1)" with no upper bound, which reads as a constant. It is not:
Studio 2024.2 through 2025.3 bundle JBR 21, but Studio 2026.1 (Quail) bundles
JBR 25.0.3. That line is what made "just point at Studio's bundled JBR" look
like a free alternative to installing JDK 21, and on Rick's Studio it points
straight at the Java that is failing. The row is now version-dependent and a
dated correction note sits at the top of the document rather than in the table.
Re-verified every other row: only the Flutter current-stable patch number moved
(3.47.1 to 3.47.2). Gradle 8.12 still caps at Java 23, Java 25 still needs
Gradle 9.1.0, AGP 9.4.0 still lists JDK 17 and no 25, and flutter/flutter#187223
is still open.
Answered the new question the doctor output raised. The laptop builds with its
own Flutter 3.35.1, not the vendored 3.32.0: the deploy script calls bare
flutter, flutter build rewrites flutter.sdk in local.properties from whichever
binary ran, and the rsync excludes the vendored SDK entirely. Flutter 3.35.1
lifts only the AGP cap, 8.7.3 to 8.9.1; the Gradle cap stays at 8.12 and the
Java compatibility table is unchanged, so it buys no progress toward JDK 25.
The recommendation to install a separate JDK 21 stands and is now the only
path.
Also noted two blockers that are independent of Java: unaccepted Android
licences, and a terminal running under Rosetta.
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Copy file name to clipboardExpand all lines: README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -113,7 +113,7 @@ src/lupin-mobile/
113
113
-**[Spoken Quick Ask, One Leg — Implementation Plan](src/rnd/2026.09.11-spoken-ask-streamed-door-implementation-plan.md)** - The build plan for those rulings: a new `POST /api/v2/ask-audio` streaming two NDJSON lines (transcript, then the full `AskResponse` with the job ID), transcription and ask off the event loop, unique temp files; on the phone a review-first/send-immediately toggle, a stream reader in `QueueRepository`, one branch in `QuickAskBloc` reusing `_applyResolvedAsk`, and cancel-before-job-ID. Test matrix per tier. **Plan only; awaiting Rick's okay.**
114
114
-**[Phone Device Session Script](src/rnd/2026.09.15-phone-device-session-script.md)** - Rick's ~20-minute handset sitting for rows `c51e92da` and `9b1f7701`: install a fresh wip build, run the network round-trip probe on wifi then LTE and pull the JSONL logs, then record ~10 real questions for the Opus 32 kbps accuracy comparison. Flags two preconditions: the bundled server address only works in the emulator, and the app deletes its WAV recordings after upload today.
115
115
116
-
-**[JDK 25 Build Failure — Why Upgrading Gradle Does Not Fix It](src/rnd/2026.09.15-jdk-gradle-flutter-compatibility.md)** - The laptop's JDK 25.0.3 breaks the build with a bare `25.0.3` as its whole error. Upgrading Gradle is not available to us: Flutter 3.32's `gradle_utils.dart` caps Gradle at 8.12 and AGP at 8.7.3, exactly what this repo pins — so Gradle 9 requires a Flutter upgrade first, and even AGP 9.4.0 still lists JDK 17, never 25. Compatibility table with sources, the three paths costed, and how far behind our vendored Flutter 3.32.0 is (five stables, ~15 months) with nothing in those releases this app needs. **Recommendation: point the build at JDK 21 (the LTS Android Studio itself bundles); no repo file changes.**
116
+
- **[JDK 25 Build Failure — Why Upgrading Gradle Does Not Fix It](src/rnd/2026.09.15-jdk-gradle-flutter-compatibility.md)** - The laptop's JDK 25.0.3 breaks the build with a bare `25.0.3` as its whole error. Upgrading Gradle is not available to us: Flutter 3.32's `gradle_utils.dart` caps Gradle at 8.12 and AGP at 8.7.3, exactly what this repo pins — so Gradle 9 requires a Flutter upgrade first, and even AGP 9.4.0 still lists JDK 17, never 25. Compatibility table with sources, the three paths costed, and how far behind our vendored Flutter 3.32.0 is (five stables, ~15 months) with nothing in those releases this app needs. Carries a dated correction: the bundled Android Studio JDK is **not** a constant — Studio 2024.2–2025.3 bundle JBR 21 but **Studio 2026.1 (Quail) bundles JBR 25.0.3**, so reusing Studio's JBR is not an option on a current Studio. Also establishes that the laptop builds with its own Flutter **3.35.1**, not the vendored 3.32.0, and that 3.35.1 lifts only the AGP cap (8.7.3 → 8.9.1) while leaving the Gradle cap at 8.12 — zero progress toward JDK 25. Plus two independent blockers: unaccepted Android licences, and a terminal running under Rosetta. **Recommendation: install a separate JDK 21 and point the build at it; no repo file changes.**
117
117
118
118
### In-App Document Viewer (2026-09)
119
119
-**[Abstract Doc-Link Viewer — Feasibility & Implementation Plan](src/rnd/2026.09.08-abstract-doc-link-viewer-feasibility.md)** - Can the app show an icon on abstracts that carry a doc link, and render the document in-app? Yes, and cheaper than expected: `/api/docs/file` returns **raw** markdown/text/code over the Dio that already injects the Bearer token, so no WebView and no second auth path. Covers the Flutter-vs-native-Android toolkit answer, the `flutter_markdown` discontinuation, the link shapes to parse, and a 4-phase plan. **Plan only; nothing implemented.**
| Android Studio **2026.1 (Quail)**| bundles JBR **25.0.3** — the 2026.1 IntelliJ platform moved to JDK 25 |[JBR 25 releases](https://github.com/JetBrains/JetBrainsRuntime/releases) · Rick's own `flutter doctor -v`|
69
+
70
+
⚠️ **The bundled JBR is not a constant — it tracks the Studio version.** Never assume "Studio ships
@@ -75,14 +120,105 @@ Vendored: **3.32.0**, stable, framework commit 2025-05-19, Dart 3.8.0. Current s
75
120
audio/recording fix for our stack, no security advisory. Under the standing policy — upgrade only
76
121
when something breaks or something needed requires it — there is no compelling reason.
77
122
123
+
## Third question: the laptop runs Flutter 3.35.1, not the vendored 3.32.0 — does that change anything?
124
+
125
+
It does not. But it is worth spelling out, because the whole argument above was computed from
126
+
3.32's caps and the laptop never loads 3.32.
127
+
128
+
### Which Flutter actually builds this app
129
+
130
+
**On the laptop: his own 3.35.1. The vendored 3.32.0 is not even present there.** Three reasons,
131
+
each independently sufficient:
132
+
133
+
| Mechanism | What it does | Where |
134
+
|---|---|---|
135
+
| The deploy script calls bare `flutter`|`flutter pub get` · `flutter build apk --debug` — no path, so it resolves on `PATH` → `~/flutter/v3.35.1`|`src/scripts/build-and-deploy-lupin-mobile.sh`|
136
+
|`flutter build`**rewrites**`flutter.sdk`|`updateLocalProperties()` sets `flutter.sdk` to the SDK root of whichever `flutter` binary ran |`gradle_utils.dart:751` (`Cache.flutterRoot`) |
137
+
| The laptop rsync **excludes**`flutter/`| the vendored SDK is never copied to `~/Projects/lupin-mobile`|`src/scripts/rsync-lupin-mobile.sh`|
138
+
139
+
So `android/local.properties` does **not** pin the SDK — it is a generated cache of the last SDK
140
+
that built, and Gradle only reads it back to locate `flutter_tools/gradle`
141
+
( `android/settings.gradle.kts` ). It is tracked in git, which is why it churns per machine.
142
+
`./flutter.sh` is the only way to get the vendored 3.32.0, and only on the dev server.
143
+
144
+
⇒ **His 3.35.1 is the relevant Flutter for any build he runs tonight.**
145
+
146
+
### What 3.35.1's caps actually are
147
+
148
+
Read from the 3.35.1 tag's own `gradle_utils.dart`, not from release notes:
0 commit comments