翻译为:
内部元素必须是资源引用或空
引发原因:
错误的:
<item name="webviewload_monitor_cancel_point" type="id">webviewload_monitor_cancel_point</item>
有两种情况下的解决方案:
报错的values.xml为本项目内可自定义编辑的
直接找到文件后去掉里面的内容,改为下面这样就对了
<item name="webviewload_monitor_cancel_point" type="id"/>
报错的values.xml为引用的第三方jar包
找到app模块下的build.gradle文件,在buildTypes标签中添加 resValue(“id”, “webviewload_monitor_cancel_point”, “”)
android { buildTypes{ release { resValue("id", "webviewload_monitor_cancel_point", "") } debug{ resValue("id", "webviewload_monitor_cancel_point", "") } } }