VM Options
Android Studio includes an installation text file with instructions to, amongst other things, configure the Java Virtual Machine (VM) settings. It is recommended to set the maximum memory allocation using this arrangement. A minimum of at least 2GB is recommended:
-Xmx2048mAnother recommended parameter to set is file encoding, which needs to be UTF-8:
-Dfile.encoding=UTF-8Java8 and Jack
Java8 has been used during Android project development, but Java source and target compatilibility is set for Java7. Jack Compiler tool chain, which was to replace the Java compilier and Dex tool chain for Java, is now deprecated. Java 8 is a work in progress.
