【发布时间】:2015-10-10 06:50:21
【问题描述】:
当我开始构建我的 Android 应用项目时,我发现了一个错误:
FAILURE: Build failed with an exception.
* What went wrong:
Unable to start the daemon process.
This problem might be caused by incorrect configuration of the daemon.
For example, an unrecognized jvm option is used.
Please refer to the user guide chapter on the daemon at http://gradle.org/docs/2.2.1/userguide/gradle_daemon.html
Please read the following process output to find out more:
-----------------------
Unrecognized VM option 'MaxPermSize=256m'
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
/var/www/html/ionicApp/platforms/android/cordova/node_modules/q/q.js:126
throw e;
^
Error code 1 for command: /var/www/html/ionicApp/platforms/android/gradlew with args: cdvBuildDebug,-b,/var/www/html/ionicApp/platforms/android/build.gradle,-Dorg.gradle.daemon=true
ERROR building one of the platforms: Error: /var/www/html/ionicApp/platforms/android/cordova/build: Command failed with exit code 1
我尝试了this Stack Overflow answer 中所说的内容。即使那样,我的问题也没有解决。即使在离线配置之后也不行。
当我用谷歌搜索这个错误时,我发现它与 Android Studio 相关,但我不在 Studio 上。我很困惑,因为这是我第一次处理与 java 相关的任务。
谁能建议如何解决这个问题?
【问题讨论】:
标签: java android ionic-framework