Fixed
Status Update
Comments
mg...@google.com <mg...@google.com>
ap...@google.com <ap...@google.com> #2
This is likely due to an incorrect service loader specified somewhere.
If you are unable to fix the server loader spec, you can add a -dontwarn
rule for the class to silence the error using:
-dontwarn com.google.protobuf.java_com_google_android_gmscore_sdk_target_granule__proguard_group_gtm_N1281923064GeneratedExtensionRegistryLite$Loader
A discussion of a similar situation can be found in
pr...@google.com <pr...@google.com> #3
Could you see which service file the class is declared in? You will need to look for the class referenced META-INF/services/<somefile>
.
Alternatively you can create a
Description
We can solve it by following the approach from `DisposableEffect` and `LaunchedEffect`, and including a function without the keys parameters with a deprecated with error:
```
private const val LaunchedEffectNoParamError =
"LaunchedEffect must provide one or more 'key' parameters that define the identity of " +
"the LaunchedEffect and determine when its previous effect coroutine should be cancelled " +
"and a new effect launched for the new key."
// This deprecated-error function shadows the varargs overload so that the varargs version
// is not used without key parameters.
@Deprecated(LaunchedEffectNoParamError, level = DeprecationLevel.ERROR)
@Suppress("DeprecatedCallableAddReplaceWith", "UNUSED_PARAMETER")
@Composable
fun LaunchedEffect(
block: suspend CoroutineScope.() -> Unit
): Unit = error(LaunchedEffectNoParamError)
```