Error in strings.xml: invalid symbol 'continue'

前端 未结 2 2005
灰色年华
灰色年华 2020-12-18 18:41

In my strings.xml file I have

Continue

I can\'t build my project because of the error: \"In

2条回答
  •  梦毁少年i
    2020-12-18 18:47

    "continue" is a Java keyword and the R.java would not compile.

    public static final int continue=0x7f040001;
    

    the above code would cause an "Syntax error on token "continue", invalid VariableDeclaratorId" error.

提交回复
热议问题