Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android App Bundle, Disable Language and Density Split on Base Module or All module

I have created android app bundle and I want to disable the split apk by language and density, since ours is a huge project, and we have shared resources.

Question is, when I read both developer site and medium blog from android, they ask to add

android {
   bundle {
     density { 
       enableSplit = false
     }
     language { 
      enableSplit = false
     }
   }
}

Should we add this only in baseModule(application) build.gralde or each modules build.gradle if I have multiple feature modules.

enter image description here

like image 576
VishnuPrabhu Avatar asked Nov 14 '25 11:11

VishnuPrabhu


1 Answers

There is no need to put it in all your gradle files. You can put it only in your app.gradle file as follow:

android {
    compileSdkVersion project.sdk

    defaultConfig {
        versionCode 1
        versionName "1.0.0"
    }

    bundle {
        language {
            enableSplit = false
        }
    }
}
like image 92
Benjamin Avatar answered Nov 17 '25 08:11

Benjamin



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!