Files
QFT/android/BUILD_FIX_0.1.1.md
2026-08-10 15:45:04 +08:00

34 lines
865 B
Markdown

# Android build fix v0.1.1
This revision intentionally uses the Android 15 / API 35 toolchain for the MVP.
The optical receiver does not use Android 16-only APIs, so API 36 is unnecessary for now.
Pinned stack:
- compileSdk / targetSdk: 35
- Android Gradle Plugin: 8.9.1
- Gradle: 8.11.1
- JDK: 17
- Build Tools: 35.0.0
- Kotlin Gradle Plugin: 2.1.20
- Activity: 1.10.1
- CameraX: 1.4.2
- ZXing core: 3.5.3
The manifest now references the local `@style/QftTheme`; the theme inherits the standard Android Material light no-action-bar theme.
## Windows one-command repair
From the `android` directory:
```powershell
Set-ExecutionPolicy -Scope Process Bypass
.\repair-windows.ps1 -Sdk "E:\SYSTEM\APPDATA\Android_SDK"
```
If your SDK lives elsewhere, change `-Sdk`.
After the script succeeds, the APK should be at:
`app\build\outputs\apk\debug\app-debug.apk`