This question already has answers here:
no cached version available for offline mode

(9个答案)


在8个月前关闭。




无法确定任务:app:compileDebugJavaWithJavac.的依赖性
> Could not resolve all task dependencies for configuration ':app:debugAnnotationProcessorClasspath'.
   > Could not resolve androidx.databinding:databinding-compiler:3.4.2.
     Required by:
         project :app
      > No cached version of androidx.databinding:databinding-compiler:3.4.2 available for offline mode.
      > No cached version of androidx.databinding:databinding-compiler:3.4.2 available for offline mode.
      > No cached version of androidx.databinding:databinding-compiler:3.4.2 available for offline mode.

最佳答案

在Android Studio中取消选中“离线工作”:



或在OSX中:

关于android - 没有适用于离线模式的androidx.databinding:databinding-compiler:3.4.2的缓存版本,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/60808458/

10-11 02:56