java - umeng分享中遇到找不到方法
怪我咯
怪我咯 2017-04-18 10:53:49
0
2
697

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

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

怪我咯
怪我咯

走同样的路,发现不同的人生

reply all(2)
阿神

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

刘奇

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

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template