java - JVM error while building Ionic project -


when started building android app project found error:

failure: build failed exception.  * went wrong: unable start daemon process. problem might caused incorrect configuration of daemon. example, unrecognized jvm option used. please refer user guide chapter on daemon @ http://gradle.org/docs/2.2.1/userguide/gradle_daemon.html please read following process output find out more: ----------------------- unrecognized vm option 'maxpermsize=256m' error: not create java virtual machine. error: fatal exception has occurred. program exit.   * try: run --stacktrace option stack trace. run --info or --debug option more log output.  /var/www/html/ionicapp/platforms/android/cordova/node_modules/q/q.js:126                     throw e;                     ^ error code 1 command: /var/www/html/ionicapp/platforms/android/gradlew args: cdvbuilddebug,-b,/var/www/html/ionicapp/platforms/android/build.gradle,-dorg.gradle.daemon=true error building 1 of platforms: error: /var/www/html/ionicapp/platforms/android/cordova/build: command failed exit code 1 

i tried said in this stack overflow answer. then, problem wasn't fixed. not after configuring offline.

when googled error found it's related android studio, not on studio. confused first experience handling java-related task.

can suggest how solve this?

this gradle issue, not , android studio one. gradle daemon used optimize build performance. default configured via properties file /~/.gradle/gradle.properties. can learn more reading first doc link provided in error message.

the error message tells need know error, in particular:

unrecognized vm option 'maxpermsize=256m' 

this unrecognized option prevents gradle starting jvm runs gradle dameon. presume option should -xx:maxpermsize=256m instead. if no syntax of option works you, can try , disable daemon setting in properties file:

org.gradle.daemon=false 

your build still run , may slower - how slower impossible say, might not noticeable.


Comments

Popular posts from this blog

php - Invalid Cofiguration - yii\base\InvalidConfigException - Yii2 -

How to show in django cms breadcrumbs full path? -

ruby on rails - npm error: tunneling socket could not be established, cause=connect ETIMEDOUT -