android - 如何让gradle使用所有Android Studio项目的缓存依赖项?

标签 android android-studio gradle

我在ubuntu 16.04.2中使用的是Android Studio版本3.0.1,我需要gradle才能始终为我尝试构建的每个android应用程序使用依赖项的缓存版本。我住在埃塞俄比亚,但没有获得想要的互联网接入。

最佳答案

成功构建项目后。您可以通过菜单告诉Android Studio使用缓存依赖项:

文件-> 设置-> 构建,执行,部署-> Gradle -> 全局Gradle设置。您需要检查offline work选项。如下图所示:

enter image description here

使用相同依赖项的所有其他项目都可以工作,而无需连接到Internet。

关于android - 如何让gradle使用所有Android Studio项目的缓存依赖项?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49537069/

相关文章:

java - NestedScrollView 内的 ViewPager 内的 RecyclerView - 效果不佳

android-studio - Android Studio 创建新文件/类的快捷方式

android - 运行单元测试时没有可用资源

android - 错误 :No such property: GROUP for class: org. gradle.api.publication.maven.internal.ant.DefaultGroovyMavenDeployer

android - HttpURLConnection.getResponseCode() 卡住执行/不超时

android - 检测呼出电话是否已被接听

java - 从gradle的任何进程中排除一些文件夹和文件

spring-boot - Spring Boot + Kotlin + Gradle - 错误 : Main method not found in class

android - react-native run-android plugin not found and compile sdk is not specified

android - 无线显示加触摸输入