Stay organized with collections
     
    
      
      Save and categorize content based on your preferences.
     
    
  
    
  
  
   
  
    
     
    
  
  
    
    
    LibraryBaseFlavor 
    
      
interface LibraryBaseFlavor : BaseFlavor , LibraryVariantDimension   
    
    Known direct subclasses
        
       
      
        
          
            
              
                LibraryDefaultConfig  
                
                  Specifies defaults for properties that the Android library plugin applies to all build variants.
                 
               
              
                LibraryProductFlavor  
                
                  Encapsulates all product flavors properties for library projects.
                 
               
             
          
         
       
      
     
    Summary 
    
      
        
          
            Public functions  
           
         
        
          
            Unit  
            
              
              This function is deprecated.  Replaced by targetSdkPreview property
             
           
          
            Unit  
            
              
              This function is deprecated.  Replaced by targetSdk property
             
           
          
            Unit  
            
              
              This function is deprecated.  Replaced by targetSdkPreview property
             
           
         
      
     
    
      
        
          
            Public properties  
           
         
        
          
            Int ? 
            
              
              This property is deprecated.  Will be removed from library DSL in v9.0
             
           
          
            String ? 
            
              
              This property is deprecated.  Will be removed from library DSL in v9.0
             
           
         
      
     
    
      
        
          
            Inherited functions  
           
         
        
          
            From class com.android.build.api.dsl.BaseFlavor  
              
                
                  
                    
                      String  
                      
                        
                        The name of the flavor.
                       
                     
                    
                      @Incubating  Unit  
                      
                        
                        Copies all properties from the given flavor.
                       
                     
                    
                      Unit  
                      
                        
                        This function is deprecated.  Replaced by minSdk property
                       
                     
                    
                      Unit  
                      
                        
                        This function is deprecated.  Replaced by minSdkPreview property
                       
                     
                    
                      Unit  
                      
                        
                        Specifies a flavor that the plugin should try to use from a given dimension in a dependency.
                       
                     
                    
                      Unit  
                      
                        
                        Specifies a sorted list of flavors that the plugin should try to use from a given dimension in a dependency.
                       
                     
                    
                      Unit  
                      
                        
                        Specifies a sorted list of flavors that the plugin should try to use from a given dimension in a dependency.
                       
                     
                    
                      Unit  
                      
                        
                        This function is deprecated.  Replaced by resourceConfigurations field
                       
                     
                    
                      Unit  
                      
                        
                        This function is deprecated.  Replaced by resourceConfigurations field
                       
                     
                    
                      Unit  
                      
                        
                        This function is deprecated.  Replaced by resourceConfigurations field
                       
                     
                    
                      Unit  
                      
                        
                        This function is deprecated.  Replaced by minSdk property
                       
                     
                    
                      Unit  
                      
                        
                        This function is deprecated.  Replaced by minSdkPreview property
                       
                     
                    
                      Any ? 
                      
                        
                        This function is deprecated.  Replaced by testFunctionalTest property
                       
                     
                    
                      Any ? 
                      
                        
                        This function is deprecated.  Replaced by testFunctionalTest property
                       
                     
                    
                      Any ? 
                      
                        
                        This function is deprecated.  Replaced by testInstrumentationRunnerArguments property
                       
                     
                    
                      Unit  
                      
                        
                        This function is deprecated.  Replaced by testInstrumentationRunnerArguments property
                       
                     
                    
                      Unit  
                      
                        
                        This function is deprecated.  Replaced by testInstrumentationRunnerArguments property
                       
                     
                    
                      Unit  
                      
                        
                        Configures VectorDrawables .
                       
                     
                   
                
               
              
           
          
            From class com.android.build.api.dsl.LibraryVariantDimension  
              
                
                  
                    
                      Unit  
                      
                        
                        Options for configuring AAR metadata.
                       
                     
                    
                      Any  
                      
                        
                        Adds a proguard rule file to be included in the published AAR.
                       
                     
                    
                      Any  
                      
                        
                        Adds proguard rule files to be included in the published AAR.
                       
                     
                   
                
               
              
           
          
            From class com.android.build.api.dsl.VariantDimension  
              
                
                  
                    
                      Unit  
                      
                        
                        Adds manifest placeholders.
                       
                     
                    
                      Unit  
                      
                        
                        Adds a new field to the generated BuildConfig class.
                       
                     
                    
                      @Incubating  Unit  
                      
                        
                        Encapsulates per-variant CMake and ndk-build configurations for your external native build.
                       
                     
                    
                      Unit  
                      
                        
                        Options for configuring Java compilation.
                       
                     
                    
                      Unit  
                      
                        
                        Encapsulates per-variant configurations for the NDK, such as ABI filters.
                       
                     
                    
                      @Incubating  Unit  
                      
                        
                       
                     
                    
                      Any  
                      
                        
                        Adds a new ProGuard configuration file.
                       
                     
                    
                      Any  
                      
                        
                        Adds new ProGuard configuration files.
                       
                     
                    
                      Unit  
                      
                        
                        Adds a new generated resource.
                       
                     
                    
                      Void ? 
                      
                        
                        This function is deprecated.  Use manifestPlaceholders property instead
                       
                     
                    
                      Any  
                      
                        
                        Replaces the ProGuard configuration files.
                       
                     
                    
                      Unit  
                      
                        
                        Configure the shader compiler options.
                       
                     
                    
                      Any  
                      
                        
                        Adds a proguard rule file to be used when processing test code.
                       
                     
                    
                      Any  
                      
                        
                        Adds proguard rule files to be used when processing test code.
                       
                     
                   
                
               
              
           
         
      
     
    
    Public functions 
    
     
      targetSdkVersion 
      
fun targetSdkVersion  (targetSdkVersion: Int ): Unit   
      This function is deprecated.  Replaced by targetSdk property 
     
     
      targetSdkVersion 
      
fun targetSdkVersion  (targetSdkVersion: String ?): Unit   
      This function is deprecated.  Replaced by targetSdkPreview property 
     
    Public properties 
    
    
  
  
  
     
  
 
  
    
      
       
    
    
      
    
     
  
       
    
    
       
    
  
  
 
  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."],[],[]]