I
I
idg_dima2013-06-26 12:19:32
Android
idg_dima, 2013-06-26 12:19:32

Android Studio running app slowly on device?

Good afternoon, I tried to use Android Studio instead of eclipse, but I came across the fact that the application takes much longer to start in it than in eclipse. Could you explain to me what eclipse does to make the application run faster and how to make the studio do the same?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sp0tted_0wl, 2014-03-19
@Sp0tted_0wl

Eclipse uses Ant and Android Studio uses Gradle to build the app. Many see this as the root of evil. But there is a cure:
0. Download and unpack Gradle ( www.gradle.org/downloads )
1. In your home directory, find the .gradle directory, and in it the gradle.properties file (if any of the above is missing, create it)
2. Write the following in the file:
3. Go to the studio settings and find the Gradle settings there.
4. Check the option Use local gradle distribution and specify the path to where you unpacked Gradle
5. Apply all settings.
5'. To exclude any accidents: find the gradle.properties file in the root folder of the project and add the line to the end of the file:
That's all. The next time you run Gradle, it will run as a daemon and subsequent builds will be much faster.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question