当前位置:   article > 正文

defaultConfig contains custom BuildConfig fields, but the feature is disabled._build type 'debug' contains custom buildconfig fie

build type 'debug' contains custom buildconfig fields, but the feature is di
  1. eChatHome {
  2. buildConfigField("String", "URL_REMOTE_PREFIX", "\"app/remote/\"")
  3. buildConfigField("String", "CLIENT_ID", "\"echat-app\"")
  4. buildConfigField("String", "CUSTOMER", '\"eChatHome\"')
  5. }

使用gradle8.1.1时编译报错

defaultConfig contains custom BuildConfig fields, but the feature is disabled.

解决办法是:

gradle.properties文件中增加

android.defaults.buildfeatures.buildconfig=true

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/繁依Fanyi0/article/detail/288464?site
推荐阅读
相关标签
  

闽ICP备14008679号