Android Tips #2022-12-16#
#Android #Dev #Tip
#Build #Performance #Optimization
In most cases, Library modules in Android projects do not need to generate BuildConfig and custom ResValue. You can speed up the build process by disabling these two BuildFeatures in the Library module.
Configuration for a single module#
- Add the following code to build.gradle
Unified configuration#
- Disable them in gradle.properties
- Enable them in app/build.gradle
Unified configuration for Library modules only#
- Disable them in gradle.properties