pedro21900 commented on issue #1658:
URL:
https://github.com/apache/cordova-android/issues/1658#issuecomment-1708337565
após uma tentativa utilizando "cordova platform add android@12 --verbose"
I got the following error
node version v10.9.0
No scripts found for hook "before_platform_add".
Using cordova-fetch for cordova-android@12
fetch: Installing cordova-android@12 to /home/xxxxx/git/xxx-app/02_fontes
Running command: npm install cordova-android@12 --production --save
Command finished with error code 0: npm
install,cordova-android@12,--production,--save
Removing "cordova-" prefix from cordova-android
Adding android project...
Unable to load PlatformApi from platform. SyntaxError: Unexpected token .
Unhandled error. (The platform "android" does not appear to be a valid
cordova platform. It is missing API.js. android not supported.)
Error [ERR_UNHANDLED_ERROR]: Unhandled error. (The platform "android" does
not appear to be a valid cordova platform. It is missing API.js. android not
supported.)
at CordovaEventEmitter.emit (events.js:171:17)
at CordovaEventEmitter.emit
(/home/lenonn/.nvm/versions/node/v10.9.0/lib/node_modules/cordova/node_modules/cordova-common/src/events.js:69:22)
at Object.getPlatformApiFunction
(/home/xxxxx/.nvm/versions/node/v10.9.0/lib/node_modules/cordova/node_modules/cordova-lib/src/cordova/util.js:384:20)
at
/home/xxxxx/.nvm/versions/node/v10.9.0/lib/node_modules/cordova/node_modules/cordova-lib/src/cordova/platform/addHelper.js:181:52
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]