You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by GitBox <gi...@apache.org> on 2021/02/15 20:31:36 UTC

[GitHub] [cordova-android] mabreu14 opened a new issue #1161: unable to add android platform

mabreu14 opened a new issue #1161:
URL: https://github.com/apache/cordova-android/issues/1161


   # Bug Report
   
   ## Problem
   command 'phonegap platform add android' is not working 
   the issue started happening after Feb 03 2021
   
   ### What is expected to happen?
   android platform should be added 
   
   
   ### What does actually happen?
   error Unable to load PlatformApi from platform. ReferenceError: globalThis is not defined
   
   
   ## Information
   Error happens with version cordova-android@9.0.0
   If I downgrade to 8 it works 
   
   
   ### Command or Code
   phonegap platform add android
   
   
   ### Environment, Platform, Device
   ### Version information
   current dependencies
   "babel-core": "^6.3.26",
       "babel-plugin-transform-object-rest-spread": "^6.8.0",
       "babel-polyfill": "^6.3.14",
       "bluebird": "^2.9.33",
       "classnames": "^2.1.3",
       "cordova": "^8.0.0",
       "cordova-android": "9.0.0",
       "cordova-ios": "5.1.1",
       "cordova-plugin-app-icon-changer": "1.0.0",
       "cordova-plugin-calendar": "5.1.5",
       "cordova-plugin-device": "2.0.2",
       "cordova-plugin-dialogs": "2.0.1",
       "cordova-plugin-enable-multidex": "0.1.3",
       "cordova-plugin-file": "6.0.1",
       "cordova-plugin-file-transfer": "1.7.1",
       "cordova-plugin-geolocation": "3.0.0",
       "cordova-plugin-inappbrowser": "3.2.0",
       "cordova-plugin-network-information": "2.0.1",
       "cordova-plugin-passbook": "0.2.1",
       "cordova-plugin-safariviewcontroller": "1.6.0",
       "cordova-plugin-splashscreen": "5.0.2",
       "cordova-plugin-vibration": "3.1.0",
       "cordova-plugin-whitelist": "^1.3.3",
       "cordova-support-google-services": "^1.1.0",
       "cordova-plugin-screen-orientation": "3.0.2",
       "currency.js": "^0.4.4",
       "fastclick": "^1.0.6",
       "geolib": "^2.0.17",
       "glob": "^6.0.1",
       "hammerjs": "^2.0.4",
       "jquery": "^2.1.4",
       "jsbarcode": "^3.11.0",
       "lodash.groupby": "^3.1.1",
       "lodash.isequal": "^4.2.0",
       "merge-stream": "^1.0.0",
       "moment": "^2.10.3",
       "mx-ui": "git+ssh://git@bitbucket.org/daxko/mx-ui.git",
       "node-uuid": "^1.4.7",
       "node-version-compare": "^1.0.2",
       "phonegap": "^8.0.0",
       "phonegap-plugin-barcodescanner": "8.0.0",
       "plist": "^1.2.0",
       "react": "^15.2.1",
       "react-addons-css-transition-group": "^15.2.1",
       "react-addons-shallow-compare": "^15.2.1",
       "react-auto-text": "^1.0.0",
       "react-dom": "^15.2.1",
       "react-router": "^2.7.0",
       "react-svg": "^7.2.6",
       "rewire": "^2.3.4",
       "seed-random": "^2.2.0",
       "universal-ga": "^1.0.0"
   
   
   ## Checklist
   <!-- Please check the boxes by putting an x in the [ ] like so: [x] -->
   
   - [x ] I searched for existing GitHub issues
   - [x] I updated all Cordova tooling to most recent version
   - [x ] I included all the necessary information above
   


----------------------------------------------------------------
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.

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



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


[GitHub] [cordova-android] breautek closed issue #1161: unable to add android platform

Posted by GitBox <gi...@apache.org>.
breautek closed issue #1161:
URL: https://github.com/apache/cordova-android/issues/1161


   


----------------------------------------------------------------
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.

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



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


[GitHub] [cordova-android] mabreu14 commented on issue #1161: unable to add android platform

Posted by GitBox <gi...@apache.org>.
mabreu14 commented on issue #1161:
URL: https://github.com/apache/cordova-android/issues/1161#issuecomment-779438195


   already tried it and got the same error
   


----------------------------------------------------------------
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.

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



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


[GitHub] [cordova-android] breautek commented on issue #1161: unable to add android platform

Posted by GitBox <gi...@apache.org>.
breautek commented on issue #1161:
URL: https://github.com/apache/cordova-android/issues/1161#issuecomment-779436147


   Phonegap is not a supported CLI. Adobe has ended the life of phonegap. Use the `cordova` cli instead.
   
   e.g:
   
   ```
   npm install cordova -g
   cordova platform add android
   ```


----------------------------------------------------------------
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.

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



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


[GitHub] [cordova-android] mabreu14 commented on issue #1161: unable to add android platform

Posted by GitBox <gi...@apache.org>.
mabreu14 commented on issue #1161:
URL: https://github.com/apache/cordova-android/issues/1161#issuecomment-779455407


   same error but from a different place 
   cordova/node_modules/queue-microtask/index.js:5
     ? queueMicrotask.bind(globalThis)


----------------------------------------------------------------
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.

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



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