-
-
Notifications
You must be signed in to change notification settings - Fork 544
Closed
Description
By enabling the Gradle config android.r8.optimizedResourceShrinking=true (see https://android-developers.googleblog.com/2025/09/improve-app-performance-with-optimized-resource-shrinking.html)
A crash occurs in release (minify) build when using: Libs.Builder().withContext(context).build()
Note that this Gradle config will be enabled by default in AGP 9.0.0 (very soon).
Here is the crash and the stacktrace:
Fatal Exception: java.lang.IllegalStateException
Please provide the required library data via the available APIs. Depending on the platform this can be done for example via `Libs.Builder().withJson()`. For Android there exists an `Libs.Builder().withContext(context).build()`, automatically loading the `aboutlibraries.json` file from the `raw` resources folder. When using compose or other parent modules, please check their corresponding APIs.
com.mikepenz.aboutlibraries.Libs$Builder.build (Libs.kt:44)
my.package.SettingsLicensesScreenKt$SettingsLicensesScreen$libraries$2$1$1.invokeSuspend (SettingsLicensesScreen.kt:30)
kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith (ContinuationImpl.kt:33)
kotlinx.coroutines.DispatchedTask.run (DispatchedTask.kt:100)
kotlinx.coroutines.internal.LimitedDispatcher$Worker.run (LimitedDispatcher.kt:124)
kotlinx.coroutines.scheduling.TaskImpl.run (Tasks.kt:89)
kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely (CoroutineScheduler.kt:586)
kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask (CoroutineScheduler.kt:820)
kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker (CoroutineScheduler.kt:717)
kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run (CoroutineScheduler.kt:704)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels