Android studio 编译项目出现error: inner element must either be a resource reference or empty错误

环境:

Android studio:3.4

compileSdkVersion 28

gradle:3.4.0

错误如下:

Android resource compilation failed
D:\workspace\demo\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml:7333: error:  inner element must either be a resource reference or empty.
D:\workspace\demo\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml:7372: error:  inner element must either be a resource reference or empty.
D:\workspace\demo\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml: error: file failed to compile.

解决:

根据错误信息定位到错误行,并找到真正错误的资源文件位置,如下:

    false
    false

修改为:

        
    

 

你可能感兴趣的:(Android)