Migrate an Android Studio project to an Offline computer

0

I'm trying to migrate an Android project between computers without an internet connection. Currently working with Android Studio 2.3.2, to make the attempt to migrate the project I have copied and pasted the folders .gradle, .android, .AndroidStudio2.3, the folder corresponding to the project, the folder corresponding to the version of the IDE AndroidStudio and the folder that corresponds to AndroidSdk.

So far so good, the problem arises when starting the project on the new computer, all external libraries disappear, Android Studio also requires me to increase the version of the gradle from 3.3 to at least 4.1.

I do not understand why the libraries are lost and because Android suddenly asks me to update the gradle version. As I have no way to automatically download the libraries (in the old computer were in cache) I tried to import them as modules, but as solvento the problem of the libraries arise hundreds of errors of assignment errors in attributes and similar things.

My question basically is if someone knows an efficient method to migrate projects between computers that do not have a connection.

Greetings and thanks in advance.

    
asked by José Manuel 21.03.2018 в 13:31
source

1 answer

0

You have to put your Gradle in offline mode so that it will not search the internet, another option is to have the dependencies in .JAR format to work with them without having to solve the dependencies.

But if you would need internet once at least, otherwise you would have to download all the dependencies of your project and modify the gradle file to point to the .JAR

    
answered by 21.03.2018 в 21:56