Titanium JIRA Archive
Appcelerator Community (AC)

[AC-6523] Unable to start the daemon process.

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionInvalid
Resolution Date2020-04-09T08:23:02.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsTitanium SDK & CLI
Labelsn/a
ReporterPraveen Kumar
AssigneeAbir Mukherjee
Created2020-04-08T08:52:31.000+0000
Updated2020-04-09T08:23:02.000+0000

Description

Hello, I got error while run android app in axway appcelerator studio. Please advise me for resolving the issue. [GRADLE] [ERROR] : [GRADLE] FAILURE: Build failed with an exception. [ERROR] : [GRADLE] [ERROR] : [GRADLE] * What went wrong: [ERROR] : [GRADLE] Unable to start the daemon process. [ERROR] : [GRADLE] This problem might be caused by incorrect configuration of the daemon. [ERROR] : [GRADLE] For example, an unrecognized jvm option is used. [ERROR] : [GRADLE] Please refer to the User Manual chapter on the daemon at https://docs.gradle.org/5.4.1/userguide/gradle_daemon.html [ERROR] : [GRADLE] Process command line: C:\Program Files (x86)\Java\jdk1.8.0_151\bin\java.exe -Xmx3072M -Dfile.encoding=windows-1252 -Duser.country=US -Duser.language=en -Duser.variant -cp C:\Users\dell\.gradle\wrapper\dists\gradle-5.4.1-all\3221gyojl5jsh0helicew7rwx\gradle-5.4.1\lib\gradle-launcher-5.4.1.jar org.gradle.launcher.daemon.bootstrap.GradleDaemon 5.4.1 [ERROR] : [GRADLE] Please read the following process output to find out more: [ERROR] : [GRADLE] ----------------------- [ERROR] : [GRADLE] Error occurred during initialization of VM [ERROR] : [GRADLE] Could not reserve enough space for 3145728KB object heap [ERROR] : [GRADLE] [ERROR] : [GRADLE] [ERROR] : [GRADLE] * Try: [ERROR] : [GRADLE] Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights. [ERROR] : [GRADLE] [ERROR] : [GRADLE] * Get more help at https://help.gradle.org [ERROR] : "gradlew" tool returned exit code: 1 [ERROR] Application Installer abnormal process termination. Process exit value was 1

Comments

  1. Ewan Harris 2020-04-08

    [~praveeav@gmail.com] it looks like the the default value we assign to the JVM when building is too large for your machine. You can configure this to be a smaller value using the below To set the values in the config run the below commands. this persists for every app built on that machine
       appc ti config android.javac.maxMemory 1024M
       appc ti config android.dx.maxMemory 1024M
       
    Set the following values in your tiapp. This app specific, but persists across every machine that builds the app:
       <property name="android.javac.maxmemory" type="string">1024M</property>
       <property name="android.dx.maxmemory" type="string">1024M</property>
       
  2. Praveen Kumar 2020-04-09

    issue resolved. Thanks Ewan Harris.

JSON Source