Fixed
Status Update
Comments
di...@google.com <di...@google.com> #2
jl...@google.com <jl...@google.com>
js...@google.com <js...@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
js...@google.com <js...@google.com>
js...@google.com <js...@google.com>
an...@google.com <an...@google.com> #4
Thank you for your patience while our engineering team worked to resolve this issue. A fix for this issue is now available in:
- Android Studio Ladybug Feature Drop | 2024.2.2 Canary 8
- Android Gradle Plugin 8.8.0-alpha08
We encourage you to try the latest update.
If you notice further issues or have questions, please file a new bug report.
Thank you for taking the time to submit feedback — we really appreciate it!
nu...@traderepublic.com <nu...@traderepublic.com> #5
Comment has been deleted.
nu...@gmail.com <nu...@gmail.com> #6
Same happening for SliderDefaults.Track with AGP 8.8.0-rc02. I am not using the deprecated one but still getting
../../src/main/java/path/to/project/presentation/ui/component/chat/MyComponent.kt:149: androidx.compose.material3.SliderDefaults.Track is deprecated; consider using an alternative.
146 onValueChange = { value = it },
147 valueRange = 0f..audioDuration,
148 track = { sliderState ->
149 SliderDefaults.Track(
150 modifier = Modifier.height(8.dp),
151 sliderState = sliderState,
152 drawStopIndicator = null,
153 thumbTrackGapSize = 0.dp,
154 colors = SliderColors(
Description
DESCRIBE THE ISSUE IN DETAIL: AbstractAnnotationDetector is used in DeprecatedAnnotationDetector rule. After AGP 8.6.0 and Lint 31.6.0,
visitAnnotationUsage
started checking wrong function/constructor.I cannot verify this situation in Unit Test. Repo has the setup to reproduce.
STEPS TO REPRODUCE:
Version of Gradle Plugin: 8.6.x, 8.7.0 Version of Gradle: 8.10.2 Version of Java: 21 OS: Mac OS, Ubuntu