Stay organized with collections
    
    
      
      Save and categorize content based on your preferences.
    
  
  
    
  
  
  
  
    
  
  
    
    
    
    LibraryVariant
    interface LibraryVariant : Variant, GeneratesAar
    
    Variant for Library projects
    Summary
    
    
      
        
          | Properties | 
        
          | abstract AndroidTest? | Variant's AndroidTest configuration, or null if android tests are disabled for this
variant. | 
        
          | abstract Renderscript? | Variant specific settings for the renderscript compiler. | 
      
    
    
      
        
          | Inherited properties | 
        
          |  | 
        
          | From class Variant
                
                  
                    | MapProperty<String, BuildConfigField<out Serializable>> | buildConfigFields
                         Variant's BuildConfigField which will be generated in the BuildConfig class. |  
                    | MapProperty<String, Any> | experimentalProperties
                         Additional per variant experimental properties. Initialized from com.android.build.api.dsl.CommonExtension.experimentalProperties |  
                    | ExternalNativeBuild? | externalNativeBuild
                         Variant's cmake ExternalNativeBuild, initialized by merging the product flavor values or
null if no cmake external build is configured for this variant. |  
                    | MapProperty<String, String> | manifestPlaceholders
                         MapProperty of the variant's manifest placeholders. Placeholders are organized with a key and a value. The value is a String that will be
used as is in the merged manifest. |  
                    | Int? | maxSdkVersion
                         Gets the maximum supported SDK Version for this variant. |  
                    | AndroidVersion | minSdkVersion
                         Gets the minimum supported SDK Version for this variant. |  
                    | Provider<String> | namespace
                         The namespace of the generated R and BuildConfig classes. Also, the namespace used to resolve
any relative class names that are declared in the AndroidManifest.xml. This value supersedes any value specified by the packageattribute in the source
AndroidManifest.xml, but doing a 'get' on this property will not retrieve the value specified
in the AndroidManifest.xml. |  
                    | Packaging | packaging
                         Variant's packagingOptions, initialized by the corresponding global DSL element. |  
                    | ListProperty<RegularFile> | proguardFiles
                         List of proguard configuration files for this variant. The list is initialized from the
corresponding DSL element, and cannot be queried at configuration time. At configuration time,
you can only add new elements to the list. This list will be initialized from com.android.build.api.dsl.VariantDimension#proguardFile
for non test related variants and from
com.android.build.api.dsl.VariantDimension.testProguardFiles for test related variants. |  
                    | AndroidVersion | targetSdkVersion
                         Gets the target SDK Version for this variant. |  
                    | UnitTest? | unitTest
                         Variant's UnitTest, or null if the unit tests for this variant are disabled. |  | 
        
          |  | 
      
    
    Properties
    
      androidTest
      abstract val androidTest: AndroidTest?
      Variant's AndroidTest configuration, or null if android tests are disabled for this
variant.
     
    
  
  
  
    
  
 
  
    
    
      
       
    
    
  
  
  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.
  
  
  
    
      [null,null,["Last updated 2025-02-10 UTC."],[],[]]