Coder Social home page Coder Social logo

Comments (3)

uncleleonfan avatar uncleleonfan commented on July 26, 2024

您好,设置头像的逻辑是您自己写的哦,看log跟代码没太大关系,跟打包有关系,您可以尝试clean一下项目或者检查一下是否重复添加Glide依赖

from fanchat.

Y-JH avatar Y-JH commented on July 26, 2024

对的 , 我确实看到代码中使用Glide图片的加载,但是在您的项目代码的 build.gradle 中我没有找到对Glide的依赖或者引入的痕迹。如果我自己import您的项目代码,显示是没有Glide,但是如果我自己再重新引入一个Glide但是就没有您easeui的代码中像:
public static void setUserAvatar(Context context, String username, ImageView imageView){
EaseUser user = getUserInfo(username);
if(user != null && user.getAvatar() != null){
try {
int avatarResId = Integer.parseInt(user.getAvatar());
Glide.with(context).load(avatarResId).into(imageView);
} catch (Exception e) {
//use default avatar
Glide.with(context).load(user.getAvatar()).diskCacheStrategy(DiskCacheStrategy.ALL).placeholder(R.drawable.ease_default_avatar).into(imageView);
}
}else{
Glide.with(context).load(R.drawable.ease_default_avatar).into(imageView);
}
}
这样的加载图片的方式不存在,存在的只是比较简单的Glide.with(context).load(url).into(imageView);这种。我一直想不通,请问一下原因!谢谢

from fanchat.

Y-JH avatar Y-JH commented on July 26, 2024

然后现在我遇到一种情况,您能不能帮我解答一下,就是我完全使用您的项目代码使用您的环信appid一切正常,但是换成我的appid的时候出现了情况:A登陆找B聊天,A和B聊天,存在很多聊天记录,然后A退出,再次登陆并找B聊天的时候A的聊天记录就不见了。。。。请问为什么呢?

from fanchat.

Related Issues (6)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.