javaandroidandroid-studioeclipse-pluginandroid-studio-import

gradle.properties file missing while making Eclipse ADT project to android Studio


I am stuck with the Importing of the Eclipse Project in Android Studio. I tried to import it but gradle.properties file is missing. So when I sync project it says the following error.

Error:Unable to start the daemon process: could not reserve enough space for object heap. Please assign more memory to Gradle in the project's gradle.properties file. For example, the following line, in the gradle.properties file, sets the maximum Java heap size to 1,024 MB: org.gradle.jvmargs=-Xmx1024m Read Gradle's configuration guide
Read about Java's heap size

So I dont even have the gradle.properties file then How can I add this line in that.

org.gradle.jvmargs=-Xmx1024m

Solution

  • This question is answered here:

    Just create a file called gradle.properties in your root project:
    
    root
    |--gradle.properties
    |--build.gradle
    |--settings.gradle
    |--app
    |----build.gradle
    
    Then add inside the file:
    
    org.gradle.jvmargs=-Xmx2048m