No More Posting New Topics!

If you have a question or an issue, please start a thread in our Github Discussions Forum.
This forum is closed for new threads/ topics.

Navigation

    Quasar Framework

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Command "cordova" failed with exit code: 1 on Windows

    Help
    2
    3
    2289
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • F
      felice last edited by

      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?

      1 Reply Last reply Reply Quote 0
      • F
        felice last edited by

        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.
        
        metalsadman 1 Reply Last reply Reply Quote 0
        • metalsadman
          metalsadman @felice last edited by

          @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 your

          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
          
          1 Reply Last reply Reply Quote 0
          • First post
            Last post