简体   繁体   中英

buck build failed by constant expression required error

I am trying to convert my Android Gradle project into Buck by using okbuck. 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. Are there any other ways to force Buck to ignore the constant expression check? Thx.

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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