简体   繁体   English

buck构建失败,因为常量表达式需要错误

[英]buck build failed by constant expression required error

I am trying to convert my Android Gradle project into Buck by using okbuck. 我正在尝试使用okbuck将我的Android Gradle项目转换为Buck。 However when I build the project, a lot of constant expression required errors break the building process. 但是,当我构建项目时,许多常量表达式所需的错误会破坏构建过程。 I understand I could replace the "switch" statement with "if" to fix the errors. 我知道我可以用“if”替换“switch”语句来修复错误。 Are there any other ways to force Buck to ignore the constant expression check? 还有其他方法迫使Buck忽略常量表达式检查吗? Thx. 谢谢。

您必须将其转换为if / else块(文档)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM