Android resource compilation failed 处理方法

发生场景:老项目AS2.3的运行在AS3.2以上
具体报错如下:

Android resource compilation failed
: error: <item> inner element must either be a resource reference or empty.

然后点过去具体报错的地方如下:

<item name="month_text_view" type="id">false</item>

解决方案:
1.如果不是第三方库,那么直接修改如下:

<item name="month_text_view" type="id"/>

2.如果是第三方库,那么在如下目录下新建ids文件,values-ids
Android resource compilation failed 处理方法_第1张图片
在ids文件中添加如下代码

<item name="month_text_view" type="id"/>

同步一下,就好了

你可能感兴趣的:(Android resource compilation failed 处理方法)