compileDebugJavaWithJavac无法访问

错误

Task :training:compileDebugJavaWithJavac
/Users/leon/workspace/android/training/src/main/java/com/training/core/revision/ui/LiveTrainingUserItem.java:67: 错误: 无法访问RequestManager
circularImageView.loadNetWorkImage(userList.get(i).getAvatar(), R.drawable.person_70_70);
^
找不到com.bumptech.glide.RequestManager的类文件

解决

https://blog.csdn.net/u014453811/article/details/54582426

按照上面的方法还是没有定位到具体错误原因,后来想到gradle依赖导致
https://blog.csdn.net/soslinken/article/details/73114637

然后发现在training模块依赖的basiclib模块,而basiclib模块是implementation glide

training build.gradle

implementation project("basiclib")

basiclib build.gradle

implementation deps.glide

所以导致training模块找不到类文件

你可能感兴趣的:(compileDebugJavaWithJavac无法访问)