Android wear project with 3 flavors, 3 buildTypes and 2 applicationIdSuffixes

前端 未结 1 424
闹比i
闹比i 2021-01-01 09:56

When I build my project after trying to combine wearApp flavors and buildTypes with applicationIdSuffixes, i get the following error message:

Error:Execution         


        
1条回答
  •  挽巷
    挽巷 (楼主)
    2021-01-01 10:43

    According to This Post

    Try this

    configurations {
        firstDebugWearApp
        firstCustomerTestWearApp
        firstReleaseWearApp
        secondDebugWearApp
     ...//  And all the others
    }
      dependencies {
            firstDebugWearApp project(path: ':wear', configuration: 'firstDebug')
            firstCustomerTestWearApp project(path: ':wear', configuration: 'firstCustomerTest')
            firstReleaseWearApp project(path: ':wear', configuration: 'firstRelease')
    
            secondDebugWearApp project(path: ':wear', configuration: 'secondDebug')
            secondCustomerTestWearApp project(path: ':wear', configuration: 'secondCustomerTest')
            secondReleaseWearApp project(path: ':wear', configuration: 'secondRelease')
    
            thirdDebugWearApp project(path: ':wear', configuration: 'thirdDebug')
            thirdCustomerTestWearApp project(path: ':wear', configuration: 'thirdCustomerTest')
            thirdReleaseWearApp project(path: ':wear', configuration: 'thirdRelease')
        }
    

    0 讨论(0)
提交回复
热议问题