My gradle in intellij idea has no cache. So i found the best solution to uncheck the offline mode in gradle. But the problem is I didn't find any in Intellij Idea 2017.1 . Please help.
On IntelliJ 2019.2 EAP I cannot find the "Offline work" box to uncheck. However, you can go to
$HOME/Library/Preferences/IntelliJIdea2019.2/options/gradle.settings.xml
on MacOS or the path defined by JetBrains and remove the OfflineMode
option.
如果我理解正确,您可以在设置中搜索“gradle”,然后查看打印屏幕
For Linux user using Intellij 2019.2 you can find the Gradle option file in ~/.IntelliJIdea2019.2/config/options/gradle.settings.xml
or create one if it doesn't exist and add the "offlineWork" option with value=false
<application>
<component name="GradleSystemSettings">
<option name="offlineWork" value="false" />
</component>
</application>
change the offlineWork option to false
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.