-Running Android 2.1.1 on Mac OS X
-App is not on the Android phone.
gradle.properties file contents
org.gradle.jvmargs=-Xmx2048M

When the IDE hangs, it indicates that this is an unused property . It should also be dark blue, not gray.
Output:
:MyProjectDirName:transformClassesWithInstantRunSlicerForDebug :MyProjectDirName:transformClassesWithDexForDebug To run dex in process, the Gradle daemon needs a larger heap. It currently has approximately 910 MB. For faster builds, increase the maximum heap size for the Gradle daemon to more than 2048 MB. To do this set org.gradle.jvmargs=-Xmx2048M in the project gradle.properties. For more information see https://docs.gradle.org/current/userguide/build_environment.html
The compiler output clearly indicates that it discards the contents of the gradle.properties file.
build.gradle content
android { dexOptions { javaMaxHeapSize "2g" } }
Playback with these settings is also without success:

Jim Clermonts May 30 '16 at 18:11 2016-05-30 18:11
source share