Intellij idea showing error: could not create the java virtual machine
The problem was caused by the too high heap size for the DX compiler, it can be changed here (File
| Settings
| Compiler
| Android DX Compiler
).
Check this document that explains why it happens when 32-bit JDK is used.
try this:
navigate to C:\Program Files (x86)\JetBrains\IntelliJ IDEA 13.1.3\bin and run the " idea64.exe ".
if 64-bit executable is not provided for your product Start the IDE using .bat file instead of the .exe