Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
459 views
in Technique[技术] by (71.8m points)

android - no cached version available for offline mode

At office, I am behind a proxy. The internet access is restricted.

So I performed a gradle sync at home and copied the folder ".gradle" present at C:Usersusername.gradle from my home PC to the same location on my office PC.

Now on my office PC, I set gradle in Android Studio to "Work Offline" but still whenever I try to perform a gradle sync, I get an error stating

Error: Could not download google-services.jar (com.google.gms:google-services:3.0.0): No cached version available for offline mode

However on digging through the ".gradle" folder I was able to locate the google-service.jar file at

C:Usersusername.gradlecachesmodules-2files-2.1com.google.gmsgoogle-services3.0.032b833222c886ecfb37d79b1a05ce1eddb702db1

I am not sure how to proceed. Please help.

question from:https://stackoverflow.com/questions/37409265/no-cached-version-available-for-offline-mode

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

I had to dig for this a long time in the 2019.2 version. This option has moved in the UI. It is now in the toolbar of the gradle tools:

intellij gradle toolbar

see JetBrains documentation at https://www.jetbrains.com/help/idea/jetgradle-tool-window.html#offline


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...