Glide需要专门安装吗?
来源:16-6 桥接原生原子组件 封装原生组件属性

qq_慕妹2034599
2023-09-07
找不到Glde
我看您的源码有
import com.bumptech.glide.Glide;
import com.bumptech.glide.load.resource.bitmap.CircleCrop;
import com.bumptech.glide.load.resource.bitmap.RoundedCorners;
我加上之后报Cannot resolve symbol 'bumptech’
这块要怎么处理呢,这块能讲的详细些吗?对于没有Android基础的我好难啊
写回答
1回答
-
FE大公爵
2023-09-07
在Android工程中添加Glide的原生依赖,具体是:
android/app目录下的build.gradle文件,在dependecies节点下添加
implementation 'com.github.bumptech.glide:glide:4.13.0'
annotationProcessor 'com.github.bumptech.glide:compiler:4.13.0'
然后点击androidStudio上方的sync按钮(小大象图标)即可
00
相似问题