Stay organized with collections
    
    
      
      Save and categorize content based on your preferences.
    
  
  
    
  
  
  
  
    
    
    
  
  
    
    
    TestVariantBuilder
    
      
interface TestVariantBuilder : VariantBuilder
    
    
    VariantBuilder type for tests associated with a module.
    Summary
    
    
      
        
          
            Inherited properties | 
          
        
        
          
            From class com.android.build.api.variant.ComponentBuilder
              
                
                  
                    
                      Boolean | 
                      
                        
                         Set to true if the variant is active and should be configured, false otherwise. 
                       | 
                     
                    
                      Boolean | 
                      
                        
                         This property is deprecated. Will be removed in 8.0 
                       | 
                     
                  
                 
               
             | 
          
          
            From class com.android.build.api.variant.ComponentIdentity
              
                
                  
                    
                      String? | 
                      
                        
                         Build type name, might be replaced with access to locked DSL object once ready. 
                       | 
                     
                    
                      String? | 
                      
                        
                         The multi-flavor name of the variant. 
                       | 
                     
                    
                      String | 
                      
                        
                         Component's name. 
                       | 
                     
                    
                      List<Pair<String, String>> | 
                      
                        
                         List of flavor names, might be replaced with access to locked DSL objects once ready. 
                       | 
                     
                  
                 
               
             | 
          
          
            From class com.android.build.api.variant.VariantBuilder
              
                
                  
                    
                      Boolean | 
                      
                        
                         Set to true if the variant's has any unit tests, false otherwise. 
                       | 
                     
                    
                      Int? | 
                      
                        
                         Gets the maximum supported SDK Version for this variant. 
                       | 
                     
                    
                      Int? | 
                      
                        
                         Gets or sets the minimum supported SDK Version for this variant. 
                       | 
                     
                    
                      String? | 
                      
                        
                         Gets or sets the minimum supported SDK Version for this variant as a Preview codename. 
                       | 
                     
                    
                      Int | 
                      
                        
                         Specifies the bytecode version to be generated. 
                       | 
                     
                    
                      Int? | 
                      
                        
                         Gets or sets the target SDK Version for this variant as a Preview codename. 
                       | 
                     
                    
                      String? | 
                      
                        
                         Gets or sets the target SDK Version for this variant as a Preview codename. 
                       | 
                     
                    
                      Boolean | 
                      
                        
                         This property is deprecated. Use enableUnitTest 
                       | 
                     
                  
                 
               
             | 
          
        
      
     
  
  
  
    
  
 
  
    
      
      
    
    
      
    
    
  
       
    
    
      
    
  
  
  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."],[],[]]