Answer the question
In order to leave comments, you need to log in
Android Studio and project build offline?
Good afternoon, I already asked a similar question, I partially solved the problem by switching maven to offline mode, but now the situation is as follows - if you start the studio with the Internet connected, then everything is fine, the project starts, then we go offline, it still compiles and during Day everything works fine offline.
If you run the project in offline mode for the first time in a day, the build is interrupted with an error that it cannot connect to the Internet.
A problem occurred configuring project ':Layouts'.
> Could not resolve all dependencies for configuration ':Layouts:classpath'.
> Could not resolve com.android.tools.build:gradle:0.6.+.
Required by:
P0061_Layouts:Layouts:unspecified
> Failed to list versions for com.android.tools.build:gradle:0.6.+.
> Could not list versions using M2 pattern 'http://repo1.maven.org/maven2/[organisation]/[module]/[revision]/[artifact]-[revision](-[classifier]).[ext]'.
> Could not GET 'http://repo1.maven.org/maven2/com/android/tools/build/gradle/'.
> repo1.maven.org
Answer the question
In order to leave comments, you need to log in
I figured it out, everything was much simpler, by default the studio creates a dependency with checking for version updates.
It is enough to fix the version and everything is fineclasspath 'com.android.tools.build:gradle:0.6.3'
I immediately warn the solution is crooked, I almost didn’t work with maven, for sure you can somehow specify the local repository for it, the date does not play a role maven downloads the necessary libraries from the Internet. Try to build by hand, without using maven.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question