Error while syncing: Could not reserve enough space for 1048576KB object heap

0

This error appears when I try to sync my project in Android Studio, how do I resolve this?

  

Error: Unable to start the daemon process.   This problem might be caused by an incorrect configuration of the daemon.
  For example, an unrecognized jvm option is used.
  Please refer to the user guide chapter on the daemon at > link
  Please read the following process to find out more:

     

Error occurred during initialization of VM
  Could not reserve enough space for 1048576KB object heap
  Java HotSpot (TM) Client VM warning: ignoring option MaxPermSize = 256m; support was removed in 8.0

    
asked by anonymous 28.09.2015 / 23:23

1 answer

0

The error message appears to me that the placeholder has been exceeded and the following message:

  

Java HotSpot (TM) Client VM warning: ignoring option MaxPermSize = 256m; support was removed in 8.0

It means you do not get support for MaxPermSize in the version (which is probably your version of JDK / Java).

This response in SOen and this , gives a good idea of how to solve.

MaxPermSize defined the maximum generated permanent length in bytes, however it was deprecated in JDK 8 and replaced with MaxMetaspaceSize

According to the compatibility guide :

  

Sector: HotSpot / gc

     
  • Description

         

    The PermSize and MaxPermSize command line have been removed and are ignored. If one of these commands is used an alert will be issued to each of them:

    Java HotSpot(TM) Server VM warning: ignoring option PermSize=32m; support was removed in 8.0
    
    Java HotSpot(TM) Server VM warning: ignoring option MaxPermSize=128m; support was removed in 8.0
    
  •   
    
29.09.2015 / 00:35