Command "cordova" failed with exit code: 1 on Windows
-
I am trying to put my quasar application into android through android studio but could due to the following error:
Checking Java JDK and Android SDK versions ANDROID_SDK_ROOT=C:\Users\Felice Tan\AppData\Local\Android\Sdk (recommended setting) ANDROID_HOME=C:\Users\Felice Tan\AppData\Local\Android\Sdk (DEPRECATED) Could not find an installed version of Gradle either in Android Studio, or on your system to install the gradle wrapper. Please include gradle in your path, or install Android Studio app:spawn Command "cordova" failed with exit code: 1 +0ms app:cordova-conf Updated Cordova config.xml +10ms
Any idea on how to resolve this issue?
-
I tried to restart my computer and tried again and it now shows:
Checking Java JDK and Android SDK versions ANDROID_SDK_ROOT=C:\Users\Felice Tan\AppData\Local\Android\Sdk (recommended setting) ANDROID_HOME=C:\Users\Felice Tan\AppData\Local\Android\Sdk (DEPRECATED) Starting a Gradle Daemon, 1 incompatible Daemon could not be reused, use --status for details 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 Manual chapter on the daemon at https://docs.gradle.org/6.2.2/userguide/gradle_daemon.html Process command line: C:\Program Files (x86)\Java\jdk1.8.0_181\bin\java.exe -Xmx2048m -Dfile.encoding=windows-1252 -Duser.country=US -Duser.language=en -Duser.variant -cp C:\Users\Felice Tan\Gradle\gradle-6.2.2-all\gradle-6.2.2\lib\gradle-launcher-6.2.2.jar org.gradle.launcher.daemon.bootstrap.GradleDaemon 6.2.2 Please read the following process output to find out more: ----------------------- Error occurred during initialization of VM Could not reserve enough space for 2097152KB object heap * Try: 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.
-
@felice googling the error logs will will help you with that, since those are not quasar specific errors.
like this result https://github.com/ionic-team/ionic/issues/11591 from yourCould not find an installed version of Gradle either in Android Studio, or on your system to install the gradle wrapper. Please include gradle in your path, or install Android Studio