Android resource compilation failed after the update

 ̄綄美尐妖づ 提交于 2019-12-04 05:03:30

search for type="id" in whole project, then for every instance remove item tag contents, for example:

change this:

<?xml version="1.0" encoding="utf-8"?>
<resources>
    <item name="item_click_support" type="id">2468</item>
</resources>

to this :

<?xml version="1.0" encoding="utf-8"?>
<resources>
    <item name="item_click_support" type="id"/>
</resources>

In your project, go through all of the src/main/res/values/<name>.xml files and look for constructs like:

<item type="id" name="my_id">some random value here</item>

The thing is IDs can either have no value (creates a new ID) or refer to other IDs (using @id/other_id syntax in the value field). Just remove the values to match:

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

or

<item type="id" name="my_id"/>
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!