You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by GitBox <gi...@apache.org> on 2022/02/02 11:58:32 UTC

[GitHub] [cordova] HerickRaposo opened a new issue #319: Error “cordova\version is not recognized as an internal or external command, operable program or batch file”

HerickRaposo opened a new issue #319:
URL: https://github.com/apache/cordova/issues/319


    When i do command ionic cordova prepare android i receive  this error:
   ```
   cordova\version"' is not recognized as an internal or external command, operable program or batch file.
   
       at ChildProcess.exithandler (node:child_process:397:12)
       at ChildProcess.emit (node:events:390:28)
       at maybeClose (node:internal/child_process:1064:16)
       at Socket.<anonymous> (node:internal/child_process:450:11)
       at Socket.emit (node:events:390:28)
       at Pipe.<anonymous> (node:net:687:12) {
     killed: false,
     code: 1,
     signal: null,
     cmd: '"C:\\Programacao\\appMalote216\\platforms\\android\\cordova\\version"'
   }
   [ERROR] An error occurred while running subprocess cordova.
   ```
   
   I had this issue when trying to meet Google Play's new API level targeting policy. When I create the android@9 platform I can run the command normally and even generate a signed apk, when I add the android@10 platform when I give the prepare command I get this error.
   
   
   **Configuration of development environment:**
   
   ```
   Ionic:
   
      Ionic CLI                     : 6.18.1 (C:\Users\micro-85\AppData\Roaming\npm\node_modules\@ionic\cli)
      Ionic Framework               : @ionic/angular 5.9.3
      @angular-devkit/build-angular : 0.1000.8
      @angular-devkit/schematics    : 10.0.8
      @angular/cli                  : 10.0.8
      @ionic/angular-toolkit        : 2.3.3
   
   Cordova:
   
      Cordova CLI       : 11.0.0
      Cordova Platforms : android 10.1.1
      Cordova Plugins   : cordova-plugin-ionic-keyboard 2.2.0, cordova-plugin-ionic-webview 5.0.0, (and 20 other plugins)
   
   Utility:
   
      cordova-res : 0.15.4
      native-run  : 1.5.0
   
   System:
   
      Android SDK Tools : 26.1.1 (C:\Users\micro-85\AppData\Local\Android\Sdk)
      NodeJS            : v16.13.2 (C:\Program Files\nodejs\node.exe)
      npm               : 8.4.0
      OS                : Windows 10
   
   Node:v16.13.2
   NPM: 8.4.0
   Gradle: 7.3.3
   ```
   Similar issue:https://github.com/OneSignal/OneSignal-Cordova-SDK/issues/725


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org