Android Studio - How can we quickly copy an application?

I am creating an android application with android studio.

In this process, I also implement the facebook login, which requires me to put the code in my project, among other compile-time libraries.

Every time I compile (and run) my application during testing, it currently collects 3 minutes!

I want to know if there is a way to indicate that unmodified classes do not need to be recompiled? I am trying to speed up the build time so that I can be more productive.

Any other tips on how to make my project faster for testing / debugging / release?

Thanks.

+5
source share
3 answers

In gradle.properties add the following two lines:

 org.gradle.daemon=true org.gradle.parallel=true 
+8
source

You can enable "battery life" for Gradle. In Android Studio, open the Preferences dialog box. Then select Gradle in the categories (on the left) and check the box "Offline work".

In my projects, this speeds up compilation because dependencies are not cross-checked at compilation (I think). Therefore, when all the dependencies of your application are downloaded and compiled, you can start working offline. Remember to enable "online work" if you are changing dependencies or versions of your dependencies.

+1
source

You can always increase the available heap space. The more bars you devote, the better the compilation time.

Here is a helpful post on how to do this.

0
source

Source: https://habr.com/ru/post/1203741/


All Articles