Missing classes detected while running R8. Please add the missing classes or apply additional keep rules that are generated in .../build/app/outputs/mapping/.../.txt.
Adnan Ayoub
0
Reputation points
We are developing an Android application using Jetpack Compose and integrating Azure Communication Services (ACS) SDK for chat and calling functionalities.
implementations in build.gradle file.
When building the app in release mode with the following settings enabled:
isMinifyEnabled = true
isShrinkResources = true
getting an error "Missing classes detected while running R8..."
with the Proguard rules
# With R8 full mode generic signatures are stripped for classes that are not
# kept. Suspend functions are wrapped in continuations where the type argument
# is used.
-keep,allowobfuscation,allowshrinking class kotlin.coroutines.Continuation
-keep class com.microsoft.azure.** { *; }
-keep class com.azure.** { *; }
-keep class com.azure.android.** { *; }
-keep class com.azure.core.** { *; }
-keep @interface com.microsoft.azure.** { *; }
-keep @interface com.azure.** { *; }
-keep class com.azure.core.http.** { *; }
-keep class com.azure.core.client.** { *; }
-keep class com.azure.core.util.logging.** { *; }
-keep class *.R$ { *; }
# Azure SDK (keep only what you use)
-keep class com.azure.storage.blob.** { *; }
-keep class com.azure.core.http.** { *; }
-keep class com.skype.** { *; }
-keep class com.microsoft.trouterclient.** { *; }
# Suppress warnings for desktop Java classes
-dontwarn java.awt.**
-dontwarn java.beans.**
-dontwarn javax.activation.*
-dontwarn aQute.bnd.annotation.spi.ServiceProvider
-dontwarn aQute.bnd.annotation.Resolution
APK size become too size around 160 MB, currently APK size is 11 MB without ACS SDK
Azure Communication Services
Azure Communication Services
An Azure communication platform for deploying applications across devices and platforms.
1,210 questions
Sign in to answer