0

I just created an ionic app which I already started successfully in the browser using this command:

ionic serve

I get the following warning when running

ionic cordova prepare android

enter image description here

Why does this warning appear, why do I already have this resources directory and why is this a problem? What is the correct thing to do here? (Yes/No?)

Chef Lax
  • 89
  • 2
  • 10
  • Because you are running cordova prepare command, its re-setting up your files. Why are you using prepare? if you select Yes, what happens? – StackoverBlows Feb 09 '23 at 16:34
  • it happened using either command (also with ionic cordova emulate android). I edited my question. when I select y or N, I get this error once I emulate: https://stackoverflow.com/questions/72641747/build-ionic-on-android-could-not-compile-settings-file-platforms-android-s I thought preventing the warning that I get here might solve my other issue. But the other issue is not my question here – Chef Lax Feb 09 '23 at 16:37

1 Answers1

0

You need to be using : ionic cordova run android. More info here: https://ionicframework.com/docs/cli/commands/cordova-run

  • I am facing the same warning (and after I am also facing the same errors) after running this. I think both commands to the same thing in the end. I think I know what my actual problem was with the error: I am not using the correct java version to run with gradle & android here. I will try to change it again (even though I failed at changing it last time) – Chef Lax Feb 10 '23 at 23:44