We are working on an Android project (~ 50 modules) built on top of Gradle. We were able to successfully synchronize our project in IntelliJ Idea 14 (141.2735). CE (it takes about 30-60 seconds for gradle synchronization). With the release of IntelliJ Idea 15 CE (143.381) / Android Studio 1.4, we tried to migrate our project to a newer version, but we noticed that:
- Gradle sync does not work for our project in IntelliJ Idea 15 or Android Studio 1.4. We tried this on both Ubuntu 14.04 and OsX El Captain.
- When we try to do gradle synchronization, the IDE hangs and stops responding indefinitely. The only way to exit the IDE is to kill the corresponding process.
- We tried to increase the heap space in 'vmoptions' to 4 GB, but this did not affect.
We created a github repository with our project sketches and gradle files (without source), which is located here: https://github.com/prateeksultania/android-gradle . In IntelliJ Idea 14, gradle sync conveniently works with standard vmoptions and ends in less than a minute. However, gradle sync for the same project takes forever the new concept of IntelliJ Idea 15 or Android Studio 1.4. When we increase the maximum heap space to 4 GB, gradle sync takes more than 3 minutes for this empty project, and even after that the IDE continues to take up more than 3 GB of RAM. For our actual project with source and active files, gradle synchronization never ends on Idea 15 or Android Studio 1.4.
Steps to play:
- IntelliJ Idea 14 (141.2735) Android Studio 1.4, IntelliJ Idea 15 (143.381) ( Ubuntu, Mac).
- : https://github.com/prateeksultania/android-gradle
- IntelliJ Idea 14. "" > " " > gradle .
- gradle ( gradle ). gradle , .
- IntelliJ Idea 15 .
- gradle ( gradle ). gradle , IDE CPU.
- Android Studio 1.4
-, , ?