Cannot add buildConfigField in productFlavors

前端 未结 2 736
长情又很酷
长情又很酷 2021-01-17 10:56

In my android{} section I tried to put two different build types for may free and paid app.

Sadly I\'m getting gradle error:

Gradle \'android

2条回答
  •  失恋的感觉
    2021-01-17 11:16

    In my case:

    buildConfigField ("transport.product_flavors.MonetizationType", "MONETIAZATION_TYPE", "transport.product_flavors.MonetizationType.FREE")

提交回复
热议问题