Fixed
Status Update
Comments
mi...@google.com <mi...@google.com>
mi...@google.com <mi...@google.com>
an...@google.com <an...@google.com> #3
Thank you for the report with a reproduction. I can confirm it's reproduced:
src/main/java/com/example/slacklintinvestigation/MainActivity.kt:41: Error: androidx.compose.runtime.EffectsKt.LaunchedEffect is deprecated; consider using an alternative. [DeprecatedCall from slack-lint]
LaunchedEffect(key1 = "some") {
^
Explanation for issues of type "DeprecatedCall":
Using deprecated classes is not advised; please consider using an
alternative.
Vendor: slack
Identifier: slack-lint
Contact: https://github.com/slackhq/slack-lints
Feedback: https://github.com/slackhq/slack-lints
It's supposed to be:
@Composable
fun LaunchedEffect(
key1: Any?,
block: suspend CoroutineScope.() -> Unit
) { ... }
but resolved to:
@Deprecated(LaunchedEffectNoParamError, level = DeprecationLevel.ERROR)
@Composable
fun LaunchedEffect(
block: suspend CoroutineScope.() -> Unit
): Unit = error(LaunchedEffectNoParamError)
So... seems like the same root cause as
Description
See Issue 366029616 for context
In AGP 9.0, the default of
android.defaults.buildfeatures.resvalues
will change to false.Starting in AGP 8.X, AUA should check each module's model for usages of
resValues
, and add the DSL to enableresValues
to each module using it.