Disclaimer: This article is a blogger original article, shall not be reproduced without the bloggers allowed. https://blog.csdn.net/One_Month/article/details/83310397
Sometimes we want debug and release versions get different values of variables defined in build.gradle unity in the definition of type String time to pay attention with the "\" \ "", two double quotation marks and right slash, for example,
BuildConfigField "String", "key", "\"value\""
如果直接一个双引号,生成的BuildConfig会是这样
public static final String key = value;
Attribute value of type String generated no double quotes, this error is reported.