acceptable-planet-23174
10/09/2025, 11:13 AMimplementation (libs.livekit.android){
exclude(group = "com.github.webrtc-sdk", module = "android")
exclude(group = "androidx.compose.ui", module = "ui")
}
Our app size been increase by around 11.732 MB.
Is there any other way to decrease the size?
We can't cater that much increase in size currently our app size is 25 mb only, we can't take an increase of 11.732mb.
We don't need the support of video too currently .
Version :- 2.20.1tall-airline-16756
10/09/2025, 11:13 AMtall-airline-16756
10/09/2025, 11:14 AMlivekit-android-camerax or livekit-android-track-processors that might be excluded?
• Are you working with the standard client-sdk-android or the Jetpack Compose version (components-android)?
Once I have this info, I’d be happy to guide you through some helpful strategies, like modular exclusions or code shrinking configurations, to make things easier for you.
Sources: Android quickstart | LiveKit Docs | Multi-Platform Agent Deployment | livekit/livekit_composite | DeepWiki | docs/index.html | livekit-android-track-processors/consumer-rules.proacceptable-planet-23174
10/09/2025, 11:20 AMlivekit-android-camerax or livekit-android-track-processors that might be excluded?
How to exclude it?tall-airline-16756
10/09/2025, 11:21 AMlivekit-android-camerax or livekit-android-track-processors! You can simply leave out their dependencies from your build.gradle file. These modules aren’t included by default, so you only need to add them if you want to use specific features.
Here’s a friendly example of how you might set up your `build.gradle`:
dependencies {
def livekit_version = "2.20.2"
// Required: Core LiveKit SDK
implementation "io.livekit:livekit-android:$livekit_version"
// Optional: Exclude CameraX module
// implementation "io.livekit:livekit-android-camerax:$livekit_version"
// Optional: Exclude track processors (e.g., virtual background)
// implementation "io.livekit:livekit-android-track-processors:$livekit_version"
}
By simply commenting out or removing the implementation lines for these optional modules, they won’t be part of your app’s build. This is a great way to keep your APK size smaller and avoid unnecessary dependencies.
And don’t worry—if you’re not using features like pinch-to-zoom, torch control, or virtual backgrounds, leaving these modules out won’t affect the core camera or microphone functionality that the SDK provides.
Sources: livekit-android-track-processors/consumer-rules.proacceptable-planet-23174
10/09/2025, 11:21 AMtall-airline-16756
10/09/2025, 11:22 AMacceptable-planet-23174
10/09/2025, 11:22 AMtall-airline-16756
10/09/2025, 11:22 AMacceptable-planet-23174
10/09/2025, 11:26 AMacceptable-planet-23174
10/10/2025, 4:58 AM