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
I have updated all projects to the latest version of Compose (1.8) which
was released today. [More info
here](https://android-developers.googleblog.com/2025/04/whats-new-in-jetpack-compose-april-25.html).
I encountered the following issues and have documented their resolutions
below:
**Could not get unknown property 'keepUnusedLibraries'**
After updating the version-catalog-update-plugin from 0.8.5 to 1.0.0 I
received the following error:
```
Could not get unknown property 'keepUnusedLibraries' for extension 'versionCatalogUpdate' property 'keep' of type nl.littlerobots.vcu.plugin.KeepConfiguration.
```
Cause: The plugin no longer supports various `keep` properties.
Fix: Remove the unsupported `keep` properties from the build config.
More info:
[here](littlerobots/version-catalog-update-plugin@787b856#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5L27-L215
) and
[here](https://github.com/littlerobots/version-catalog-update-plugin/blob/main/CHANGELOG.md#resolving-dependencies)
**Minimum supported Gradle version is 8.11.1. Current version is
8.10.2.**
Fix: Search and replace `gradle-8.10.2-bin.zip` with
`gradle-8.13-bin.zip` throughout repo
**Suspend function 'suspend fun navigateBack(backNavigationBehavior:
BackNavigationBehavior): Boolean' can only be called from a coroutine or
another suspend function.**
Full error:
```
e: file:///Users/donturner/Code/workspace-android/compose-samples/Jetcaster/mobile/src/main/java/com/example/jetcaster/ui/home/Home.kt:268:19 Suspend function 'suspend fun navigateBack(backNavigationBehavior: BackNavigationBehavior): Boolean' can only be called from a coroutine or another suspend function.
```
Root cause: `ThreePaneScaffoldNavigator.navigateBack` [became a suspend
fun](https://developer.android.com/jetpack/androidx/releases/compose-material3-adaptive#1.1.0-alpha04).
Fix: Wrap `navigate` calls in `coroutineScope.launch`
**Unresolved reference
ThreePaneScaffoldNavigator.currentDestination.content**
Cause: Property name changed from `content` to `contentKey`
Fix: Change to `contentKey`
**Core library desugaring runtime library version 1.2.2 does not support
compileSdk=35 or later; please upgrade to version 2.1.5**
Fix: Update jdkDesugar to 2.1.5
**Failed to apply plugin 'com.diffplug.spotless'.**
Cause: `scripts/verify_samples.sh` still assumed that the spotless
config would be in a separate init file, but no longer does following
[this PR](#1549).
Fix: Update `scripts/verify_samples.sh` to use the `spotlessCheck` task
from each app's `build.gradle.kts`.
**Spotless formatting issues**
`Home.kt` from Jetcaster had formatting issues. Running `spotlessApply`
fixes the issues but also changes code that isn't directly related to
the version updates and makes reviewing difficult. For the purposes of
reviewing, the original changes are [in this
commit](52154e0#diff-419acc413220ab5d19bee9df1ca6b8c76d269287edf45c2895759df050d1e05a).
# @pin When updating to AGP 7.4.0-alpha10 and up we can update this https://developer.android.com/studio/write/java8-support#library-desugaring-versions
# @pin When updating to AGP 7.4.0-alpha10 and up we can update this https://developer.android.com/studio/write/java8-support#library-desugaring-versions
# @pin When updating to AGP 7.4.0-alpha10 and up we can update this https://developer.android.com/studio/write/java8-support#library-desugaring-versions
0 commit comments