Archive for the ‘Android Studio’ Category

How to fix error java.lang.OutOfMemoryError: Java heap space in Android Studio

Posted on: October 23rd, 2018 by Olu No Comments

Hi folks,

Here’s a quick tip on how to fix error java.lang.OutOfMemoryError: Java heap space when working with Android Studio.

Open gradle.properties,
find org.gradle.jvmargs
set -Xmx property to something bigger, e.g.
if you had -Xmx1500m, you can change it to -Xmx3000m

This way JVM uses max heap size of 3000MB
That’s all for now.
Happy coding.

How to fix NullPointerException RoboVmRunProfileState.startProcess error of RoboVM iOS not starting

Posted on: June 10th, 2018 by Olu No Comments

Hi folks,

Here I describe quickly how to fix a problem of RoboVM iOS not running on Android Studio. The error in question is one of the form:

Couldn't start application
 at org.robovm.idea.running.RoboVmRunProfileState.executeRun(RoboVmRunProfileState.java:57)
 at org.robovm.idea.running.RoboVmRunProfileState.startProcess(RoboVmRunProfileState.java:126)


According to a RoboVM issue page, the problem seems to be due to some FacetManager component markup present in ios.iml. The markup looks like:


<component name="FacetManager">
    <facet type="android-gradle" name="Android-Gradle">
        <option name="GRADLE_PROJECT_PATH" value=":ios" />
    <facet type="java-gradle" name="Java-Gradle">
        <option name="BUILD_FOLDER_PATH" value="$MODULE_DIR$/build" />
        <option name="BUILDABLE" value="true" />


Removing the markup solves the problem.

Till next time.