zoukankan      html  css  js  c++  java
  • 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);

  • 相关阅读:
    配置文件管理
    Nacos学习
    dockerCompose学习
    Dockerfile
    vue生命周期
    github使用
    推荐系统
    js笔记17
    js笔记16
    js笔记15
  • 原文地址:https://www.cnblogs.com/allencoder/p/5327201.html
Copyright © 2011-2022 走看看