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

發佈了71 篇原創文章 · 獲贊 25 · 訪問量 37萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章