Can't compile in the dashboard

I can’t create an APK in the dashboard. I get the following error:

Error: Current working directory is not a Cordova-based project.
Failed to build apk check logs above for errors.

All it is is the blank starter project. I can run it locally in the browser using “ionic serve”. I suspect that not all the relevant files have been created however as I have no “config.xml”

Any help at all would be greatly appreciated.

What is your ionic info output?
What platform do you want to build for? Did you add it with ionic cordova platform add ios/android?

When I try to run “cordova platform add android” I get “Error: Current working directory is not a Cordova-based project”, I’m trying this from my project’s root folder.

Ionic info:
@ionic/cli-utils : 1.18.0
ionic (Ionic CLI) : 3.18.0


Node : v8.9.0
npm  : 5.3.0
OS   : Windows 7


backend : pro

You are missing an ionic in the beginning of your command. It’s important.

So I was. Works perfectly now. Thanks very much for your help.

1 Like