0

I created a new app with sencha generate app command using sencha cmd 5.1.2.52, then ran 'sencha cordova init' (with and without a name), then added a plugin, it was successfully added. Now while building the app with 'sencha app build native' it gives the following error.

[ERR] The following error occurred while executing this line: C:\xampp\htdocs\sencha_start\pc2.sencha\app\build-impl.xml:435: The following e rror occurred while executing this line: C:\xampp\htdocs\sencha_start\pc2.sencha\app\packager-impl.xml:17: The following error occurred while executing this line: C:\xampp\htdocs\sencha_start\pc2.sencha\app\cordova-impl.xml:144: The following error occurred while executing this line: jar:file:/C:/Users/Lenovo/bin/Sencha/Cmd/5.1.2.52/sencha.jar!/com/sencha/ant/ant lib.xml:644: shellscript returned: 1

irtaza
  • 721
  • 1
  • 6
  • 13

2 Answers2

0

Try to downgrade your Node.js to 10.25 as suggested in this question: Javascript Sencha cmd app build error occurred while executing this line

Community
  • 1
  • 1
Baidaly
  • 1,829
  • 1
  • 15
  • 16
0

After adding the plugin(s), remove the platform and add it again. You'll have to run the commands from inside the cordova folder

Example of removing a platform:

cordova platform remove ios

Example of adding a platform:

cordova platform add ios
Abhishek Jain
  • 445
  • 1
  • 4
  • 11