Stay organized with collections
    
    
      
      Save and categorize content based on your preferences.
    
  
  
    
  
  
  
  
    
    
    
  
  
    
    
    DynamicFeatureExtension
    
      
interface DynamicFeatureExtension : CommonExtension, ApkExtension, TestedExtension
    
    
    Extension for the Android Dynamic Feature Gradle Plugin.
    This is the android block when the com.android.dynamic-feature plugin is applied.
    Only the Android Gradle Plugin should create instances of interfaces in com.android.build.api.dsl.
    Summary
    
      
        
          
            Inherited functions | 
          
        
        
          
            From class com.android.build.api.dsl.CommonExtension
              
                
                  
                    
                      Unit | 
                      
                        
                         This function is deprecated. Replaced by  
                       | 
                     
                    
                      Unit | 
                      
                        
                         This function is deprecated. Replaced by installation 
                       | 
                     
                    
                      Unit | 
                      
                        
                         Specifies options related to the processing of Android Resources. 
                       | 
                     
                    
                      Unit | 
                      
                        
                         A list of build features that can be enabled or disabled on the Android Project. 
                       | 
                     
                    
                      Unit | 
                      
                        
                         This function is deprecated. Replaced by buildToolsVersion property 
                       | 
                     
                    
                      Unit | 
                      
                        
                         Encapsulates all build type configurations for this project. 
                       | 
                     
                    
                      Unit | 
                      
                        
                         Specifies Java compiler options, such as the language level of the Java source code and generated bytecode. 
                       | 
                     
                    
                      Unit | 
                      
                        
                         Specify an SDK add-on to compile your project against. 
                       | 
                     
                    
                      Unit | 
                      
                        
                         This function is deprecated. Replaced by compileSdk 
                       | 
                     
                    
                      Unit | 
                      
                        
                         This function is deprecated. Replaced by compileSdkPreview 
                       | 
                     
                    
                      Unit | 
                      
                        
                       | 
                     
                    
                      Unit | 
                      
                        
                         Specifies options for the Data Binding Library. 
                       | 
                     
                    
                      Unit | 
                      
                        
                         Shortcut extension method to allow easy access to the predefined debugBuildType 
                       | 
                     
                    
                      Unit | 
                      
                        
                         Specifies defaults for variant properties that the Android plugin applies to all build variants. 
                       | 
                     
                    
                      Unit | 
                      
                        
                         Specifies options for external native build using CMake or ndk-build. 
                       | 
                     
                    
                      Unit | 
                      
                        
                         This function is deprecated. Replaced by flavorDimensions property 
                       | 
                     
                    
                      File | 
                      
                        
                       | 
                     
                    
                      Unit | 
                      
                        
                         Specifies options for the Android Debug Bridge (ADB), such as APK installation options. 
                       | 
                     
                    
                      @Incubating Unit | 
                      
                        
                         This function is deprecated. Renamed to testCoverage 
                       | 
                     
                    
                      Unit | 
                      
                        
                         Specifies options for the lint tool. 
                       | 
                     
                    
                      @Incubating Unit | 
                      
                        
                         This function is deprecated. Renamed to lint 
                       | 
                     
                    
                      Unit | 
                      
                        
                         Specifies options and rules that determine which files the Android plugin packages into your APK. 
                       | 
                     
                    
                      Unit | 
                      
                        
                         This function is deprecated. Renamed to packaging 
                       | 
                     
                    
                      Unit | 
                      
                        
                         Encapsulates all product flavors configurations for this project. 
                       | 
                     
                    
                      Unit | 
                      
                        
                         Shortcut extension method to allow easy access to the predefined releaseBuildType 
                       | 
                     
                    
                      Unit | 
                      
                        
                         Encapsulates signing configurations that you can apply to BuildType and ProductFlavor configurations. 
                       | 
                     
                    
                      Unit | 
                      
                        
                         Encapsulates source set configurations for all variants. 
                       | 
                     
                    
                      Unit | 
                      
                        
                         Specifies configurations for building multiple APKs or APK splits. 
                       | 
                     
                    
                      Unit | 
                      
                        
                         Configure the gathering of code-coverage from tests. 
                       | 
                     
                    
                      @Incubating Unit | 
                      
                        
                         Specifies options for how the Android plugin should run local and instrumented tests. 
                       | 
                     
                    
                      Unit | 
                      
                        
                         Includes the specified library to the classpath. 
                       | 
                     
                    
                      Unit | 
                      
                        
                         Includes the specified library to the classpath. 
                       | 
                     
                    
                      Unit | 
                      
                        
                         Specifies options for the View Binding Library. 
                       | 
                     
                  
                 
               
             | 
          
          
            | From class com.android.build.api.dsl.TestedExtension
              
             | 
          
        
      
     
    
  
  
  
    
  
 
  
    
      
      
    
    
      
    
    
  
       
    
    
      
    
  
  
  Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
  Last updated 2025-02-10 UTC.
  
  
  
    
      [[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 UTC."],[],[]]