Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android build flavors - Set buildConfigField value to null

Tags:

android

I have a template app which has many build flavors, In one of my flavors I want to set one of the buildConfigFields to null, how can I do it?

I tried setting it like this:

buildConfigField "String", "EasterEggURL", null

But it says that it cannot be null.

like image 500
gkpln3 Avatar asked Jan 13 '17 18:01

gkpln3


1 Answers

Did you try?

buildConfigField "String", "EasterEggURL", "null"
like image 190
betorcs Avatar answered Dec 25 '22 09:12

betorcs