Comments (3)
您好,设置头像的逻辑是您自己写的哦,看log跟代码没太大关系,跟打包有关系,您可以尝试clean一下项目或者检查一下是否重复添加Glide依赖
from fanchat.
对的 , 我确实看到代码中使用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.
然后现在我遇到一种情况,您能不能帮我解答一下,就是我完全使用您的项目代码使用您的环信appid一切正常,但是换成我的appid的时候出现了情况:A登陆找B聊天,A和B聊天,存在很多聊天记录,然后A退出,再次登陆并找B聊天的时候A的聊天记录就不见了。。。。请问为什么呢?
from fanchat.
Related Issues (6)
- libsqlite HOT 1
- 添加好友问题 HOT 1
- 添加好友时出现的一个问题
- 注册不上急急急?不知道为什么 HOT 1
- 请问一下,如何在这个基础上想发送图片,怎么做的?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fanchat.