本文主要是介绍android (No cached version available for offline mode)----bug解析处理,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
错误日志
Execution failed for task ':base:generateDebugRFile'.
> Could not resolve all files for configuration ':base:debugCompileClasspath'.> Could not download core-1.3.0.aar (androidx.core:core:1.3.0): No cached version available for offline mode> Could not download core-1.3.0.aar (androidx.core:core:1.3.0): No cached version available for offline mode> Could not download core-1.3.0.aar (androidx.core:core:1.3.0): No cached version available for offline mode> Could not download core-1.3.0.aar (androidx.core:core:1.3.0): No cached version available for offline mode> Could not download core-1.3.0.aar (androidx.core:core:1.3.0): No cached version available for offline mode> Could not download core-1.3.0.aar (androidx.core:core:1.3.0): No cached version available for offline mode> Could not download core-1.3.0.aar (androidx.core:core:1.3.0): No cached version available for offline mode> Could not download core-1.3.0.aar (androidx.core:core:1.3.0): No cached version available for offline mode> Could not download core-1.3.0.aar (androidx.core:core:1.3.0): No cached version available for offline mode> Could not download core-1.3.0.aar (androidx.core:core:1.3.0): No cached version available for offline modePossible solution:- Disable offline mode and rerun the build
主要原因就是看你导入的包是否出现问题,然后一一排查aar包
有这个提示话就是你本地没有库也不会在给你下载了,因为我们现在指向的是gradle本地库,解决方案就是把我们的gradle开关打开
这个时候回出现其他的问题,我们知道排查一下我们导入的包是否需要特殊的镜像就好了。实在解决不了的,可咨询我
这篇关于android (No cached version available for offline mode)----bug解析处理的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!