Error:Could not download ecj.jar : No cached version available for offline mode

简介: Error:Could not download ecj.jar : No cached version available for offline mode

最近重新打开老项目时,发现要配置一些东西,结果半天没有配置完,我寻思是网络问题,然后就换了一个网络,然后就报错了。错误如下


Error:Could not download ecj.jar (org.eclipse.jdt.core.compiler:ecj:4.4): No cached version available for offline mode


翻译出来的结果是

错误:无法下载ecj.jar(org.eclipse.jdt.core.compiler:ecj:4.4):离线模式没有可用的缓存版本。


怎么解决呢?

File → Settings…


202007271637445.png

20200727163956263.png


取消Offline work勾选,然后Apply,回到自己的项目页面,然后Try Again,或者点击下面这个图标就会开始用网络下载依赖库了。


20200727164220193.png


OK,因为遇到这个问题,所以记录一下。


相关文章
Flyway Validate failed: Migration checksum mismatch for migration version 1.0.0.01 错误
在运行系统的时候出现错误: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'flywayInitializer' defined in class path resour...
2842 0
|
11月前
No cached version of com.android.tools.build:gradle:2.0.0 available for offline mode.
No cached version of com.android.tools.build:gradle:2.0.0 available for offline mode.
62 0
|
11月前
|
Java Maven
Error running ‘ssm [clean]‘: No valid Maven installation found. Either set the home directory in the
Error running ‘ssm [clean]‘: No valid Maven installation found. Either set the home directory in the
|
Java 编译器 应用服务中间件
Unsupported major.minor version 52.0(unable to load class com.xxxxxxx.xxx.xx.xx)
Unsupported major.minor version 52.0(unable to load class com.xxxxxxx.xxx.xx.xx)
117 0
Unsupported major.minor version 52.0(unable to load class com.xxxxxxx.xxx.xx.xx)
Execution failed for task :Test:lintVitalRelease/Lint found fatal errors while assembling a release
Execution failed for task :Test:lintVitalRelease/Lint found fatal errors while assembling a release
98 0
Error:Failed to open zip file. Re-download dependencies and sync project
Error:Failed to open zip file. Re-download dependencies and sync project
115 0
|
开发工具
Failed to find Build Tools revision 25.0.2
Failed to find Build Tools revision 25.0.2
80 0
cl.exe is unable to create an executable file. C compiler test failed.
cl.exe is unable to create an executable file. C compiler test failed.
145 0
|
Java Maven
No valid Maven installation found. Either set the home directory in the configuration dialog or set
No valid Maven installation found. Either set the home directory in the configuration dialog or set
444 0
No valid Maven installation found. Either set the home directory in the configuration dialog or set
AS 3.6 之前和之后No cached version available for offline mode 解决方法
AS 3.6 之前和之后No cached version available for offline mode 解决方法
101 0
AS 3.6 之前和之后No cached version available for offline mode 解决方法