0

I'm running this line command

cordova platform add android

To start compiling the app APK, but the following error appears on the command line

enter image description here

I don't understand why the cordova command isn't working, what could it be?

1 Answer 1

1

if its not already done, to run this command first :

ionic cordova prepare android

https://ionicframework.com/docs/cli/commands/cordova-prepare

otherwise, try renaming the android folder, run and the prepare command again. some people experienced the same issue and this work-around worked https://forum.ionicframework.com/t/could-not-install-from-ios-as-it-does-not-contain-a-package-json-file/168462/5

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.