Home  >  Q&A  >  body text

java - umeng分享中遇到找不到方法

代码这样:
umImage = new UMImage(mContext, R.mipmap.app_activity_icon);
mUMWeb = new UMWeb(shareurl);
mUMWeb.setThumb(umImage);//缩略图
运行:报Error:(72, 25) 错误: 不兼容的类型: UMImage无法转换为String

什么原因呢。umeng的demo没问题的

怪我咯怪我咯2743 days ago682

reply all(2)I'll reply

  • 阿神

    阿神2017-04-18 10:55:49

    The reason is that the old shared SDK in the project has not been cleaned up. When running, the system finds the old method, so an error will be reported

    reply
    0
  • 怪我咯

    怪我咯2017-04-18 10:55:49

    mUMWeb.setThumb(umImage)->mUMImage.setThumb(umImage)

    reply
    0
  • Cancelreply