android sharesdk Expected resource of type id [ResourceType]
最近更新完As之後,重新編譯了項目,發現項目中引入的sharesdk報錯,解決辦法如下
1. 新建res/values/ids.xml
<?xml version="1.0" encoding="utf-8"?>
<resources>
<item name="llBody" type="id">2</item>
<item name="rlThumb" type="id">1</item>
<item name="llTitle" type="id">1</item>
</resources>
2. 找到報錯的部分重新設置 id
titleView.setId(R.id.titleId);
sv.setId(R.id.svId);