app:spawn Command "cordova" failed with exit code: 1



  • I get this error. Can you help?

    I made an application.
    But I can’t show this application in android emulator.

    $ quasar dev -m cordova -T android
    
    DONE  Compiled successfully in 5511ms                                                                                                                                    10:19:15
    
    ℹ 「wds」: Project is running at http://192.168.1.48:8080/
    ℹ 「wds」: webpack output is served from
    ℹ 「wds」: 404s will fallback to /index.html
    app:cordova-conf Updated Cordova config.xml +6s
    app:spawn Running "cordova run android" +0ms
    
    Checking Java JDK and Android SDK versions
    ANDROID_SDK_ROOT=undefined (recommended setting)
    ANDROID_HOME=/Users/macbook/Library/Android/sdk (DEPRECATED)
    Requirements check failed for JDK 8 ('1.8.*')! Detected version: 13.0.2
    Check your ANDROID_SDK_ROOT / JAVA_HOME / PATH environment variables.
    
    app:spawn Command "cordova" failed with exit code: 1 +0ms
    app:cordova-conf Updated Cordova config.xml +1ms
    


  • @benzafercengiz it’s in your logs

    Checking Java JDK and Android SDK versions
    ANDROID_SDK_ROOT=undefined (recommended setting)
    ANDROID_HOME=/Users/macbook/Library/Android/sdk (DEPRECATED)
    Requirements check failed for JDK 8 ('1.8.*')! Detected version: 13.0.2
    Check your ANDROID_SDK_ROOT / JAVA_HOME / PATH environment variables.
    


  • @metalsadman thank you.

    I solved the problem.
    this is out now. what should I do

    Checking Java JDK and Android SDK versions
    ANDROID_SDK_ROOT=undefined (recommended setting)
    ANDROID_HOME=/Users/macbook/Library/Android/sdk (DEPRECATED)
    Reading build config file: /Users/macbook/Documents/code/_play/quasar-todo/src-cordova/build.json
    Subproject Path: CordovaLib
    Subproject Path: app
    /Users/macbook/Documents/code/_play/quasar-todo/src-cordova/platforms/android/gradlew: Command failed with exit code EACCES
    
     app:cordova-conf Updated Cordova config.xml +2ms
    


  • Solved
    I reinstalled everything


Log in to reply