没有可用于离线模式的gradle的缓存版本 [英] No cached version of gradle available for offline mode
问题描述
在我的开发环境中,我根本没有Internet连接,即使临时Internet也无法实现.
I have no Internet connection at all in my development environment, even temporary Internet is not an option.
我已经收到了Android项目,但是我根本无法编译它.
I have received Android project, but I cannot compile it at all.
我收到以下消息:
离线状态下没有 com.android.tools.build:gradle:2.1.2
的缓存版本"
"No cached version of com.android.tools.build:gradle:2.1.2
available for offline mode"
我可以手动提供依赖项/缓存/等吗?
Can I provide the dependencies/caches/etc manually?
推荐答案
我的解决方案
只需进入:
文件>设置>构建,执行,部署> Gradle>未选中离线模式
File > Settings > Build, Execution, Deployment > Gradle > Unchecked Offline Mode
如果第一次成功安装,现在在设备中运行您的应用,然后进入与上述路径相同的设置
Now Run your app in device if it's 1st time successfully installed then You go in Setting same as above path
并选中离线模式
现在您的离线模式可以正常工作.:)
Now your Offline Mode working fine. :)
这篇关于没有可用于离线模式的gradle的缓存版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!