You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
This happened to me when adding a plugin while the iOS platform was also added on Windows 10. When I removed the iOS platform again, it worked as expected.
cordova plugin add @havesource/cordova-plugin-push
(node:19764) [DEP0128] DeprecationWarning: Invalid 'main' field in 'C:\Users\MaartenManders\StudioProjects\app\node_modules\objectorarray\package.json' of 'dist/index.js'. Please either fix that or report it
to the module author
(Use `node --trace-deprecation ...` to show where the warning was created)
Installing "@havesource/cordova-plugin-push" for android
Subproject Path: CordovaLib
Subproject Path: app
Installing "@havesource/cordova-plugin-push" for ios
Adding @havesource/cordova-plugin-push to package.json
Error: Command failed: "C:\Users\MaartenManders\StudioProjects\app\platforms\android\cordova\version"
'"C:\Users\MaartenManders\StudioProjects\app\platforms\android\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:\\Users\\MaartenManders\\StudioProjects\\app\\platforms\\android\\cordova\\version"'
}
When i do command ionic cordova prepare android i receive this error:
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:
Similar issue:OneSignal/OneSignal-Cordova-SDK#725
The text was updated successfully, but these errors were encountered: