On android and the environment to build gradle

Today in the debug android project, problems arise jvm, jvm can not be said to be created. Jvm parameter configuration problem is suspected, the Internet to find an explanation jvm parameters to make adjustments.

Recommended: http://www.cnblogs.com/redcreen/archive/2011/05/04/2037057.html : summed it up in more detail. My machine: win10 64, jdk jdk7_0_80 32 Wei, gradle 2.8, 8g memory

Original feel little jdk32 bit and 64-bit difference. Later found the adjustment gradle.properties file: -Xmx1024m, as long as greater than 1024m, gradle on the error, various error (think gradle of error is less clear).

Summary: android development environment best jdk64 bit, 64-bit compiler should be run. And gradle This stock is eating memory (my -Xmx2g). The machine java_home accompanied jdk64 bit (there was even a problem, my eclipse 32-bit), there is a bit disgusting oracle11g_64 comes sqldeveloper actually want to start a 32-bit jdk.

 

Attach to specify the method to start eclipse jre: eclipse.ini (Note that the first sentence, the resulting configuration from myeclipse, eclipse version Mars)

-vm
C:/Program Files (x86)/Java/jdk1.7.0_80/jre/bin/client/jvm.dll
-startup
plugins/org.eclipse.equinox.launcher_1.3.100.v20150511-1540.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.300.v20150602-1417
-product
org.eclipse.epp.package.jee.product
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
256M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
--launcher.appendVmargs
-vmargs
-Dosgi.requiredJavaVersion=1.7
-Xms512m
-Xmx768m

Reproduced in: https: //my.oschina.net/livend/blog/611795

Guess you like

Origin blog.csdn.net/weixin_34189116/article/details/91822549