Troubleshooting¶
Imports are unresolved after adding the dependency¶
Symptom¶
Unresolved reference: RadialMenuView (or similar), even after adding:
Cause¶
In some builds, Gradle variant resolution may not automatically select the Android artifact from metadata.
Fix¶
Diagnostics:
./gradlew :app:dependencies --configuration releaseRuntimeClasspath
./gradlew :app:dependencyInsight --dependency radialmenu --configuration releaseRuntimeClasspath
UnsupportedClassVersionError on Desktop¶
Symptom¶
compiled by a more recent version of the Java Runtime (class file version 65.0)
Cause¶
Older pre-1.0.5 artifacts were compiled to Java 21 bytecode.
Fix¶
- Upgrade to
1.0.5(desktop artifact now targets Java 17 bytecode). - Or run Java 21+ if you intentionally stay on older releases.
Compose type errors when using RadialMenuView¶
Symptom¶
Cannot access class 'Painter' while integrating RadialMenuView.
Cause¶
RadialMenuItem includes a Painter-based API surface; if your module has no Compose UI dependency and you use only that constructor, Kotlin may fail type resolution.
Fix options¶
Option 1: add Compose UI dependency:
Option 2: use Android overloads: