Android Studio 3.1.4离线模式 [英] android studio 3.1.4 offline mode
问题描述
我正在尝试在Android Studio中以离线模式构建项目. 因此,解压缩gradle-plugin(版本4.4)并设置Gradle path&服务目录路径.最后检查离线工作". 同步gradle时,会出现问题.
I'm trying to build the project with offline-mode in Android Studio. So, Unzip the gradle-plugin (version 4.4) and set Gradle path & Service directory path. Finally check 'Offline work'. When Sync the gradle, it occur the problem.
错误消息
没有适用于离线模式的com.android.tools.build:gradle:3.1.4的缓存版本."
已安装的SDK平台列表
Installed SDK Platform List
-
Android API 28
Android API 28
-
Android SDK平台28
Android SDK Platform 28
Android 28的来源
Sources for Android 28
Android 8.0(Oreo)
Android 8.0(Oreo)
-
Android SDK Platform 26
Android SDK Platform 26
Android 26的来源
Sources for Android 26
已安装的SDK工具
-
Android SDK构建工具
Android SDK Build-Tools
Android模拟器(27.3.10)
Android Emulator (27.3.10)
Android SDK平台工具(28.0.1)
Android SDK Platform-Tools (28.0.1)
Android SDK工具(26.1.1)
Android SDK Tools (26.1.1)
支持存储库
-
Android支持存储库(47.0.0)-----我想对此进行升级...
Android Support Repository (47.0.0) ----- I want to upgrade this...
Google存储库(58)
Google Repository (58)
很抱歉没有捕获我的屏幕.我的公司不提供互联网...
I'm sorry about no capture my screen. My company doesn't provider internet...
推荐答案
由于您已经在build.gradle
中添加了依赖项或需要下载的库,您可能需要一次连接到Internet.
You'll probably need to get connected to the internet for one time because of dependencies you have already added in build.gradle
or libraries which needs to be downloaded.
或者,如果需要在Internet或GitHub上使用jar库,则可以添加它们以供离线使用.
Or, if there are needed jar libraries available on the internet or in GitHub, you can add them to use in offline condition.
否则,如果要将依赖项添加到build.gradle
并使用gradle
,则首次下载库并进行缓存时将需要Internet,然后,您可以检查离线模式.
Otherwise, if you are adding dependencies to build.gradle
and using gradle
for that, you'll need internet for the first time downloading of libraries and caching them and after that, you can check Offline mode.
这篇关于Android Studio 3.1.4离线模式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!