1. 程式人生 > >shareSdk打包報錯解決辦法

shareSdk打包報錯解決辦法

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);