I've just started to get my hands on the Ionic Framework to code my first Android app.
I can set up the project, but when I want to add the Android platform via 'ionic platform add' it says:
' ? Error reading config file: Error: ENOENT, open 'D:\Projects\android2\config.xml'
Error happened: undefined'
When I want to build the App via 'ionic build android' it says: 'Current working directory is not a Cordova-based project.'
When I run the fix from the ionic FAQ ('cordova create') it says:
'At least the dir must be provided to create new project. See `cordova help`.'
Does anyone know why this errors happen?
Edit: tried on multiple computer (Windows 7 64), got the same error.
Go inside the folder you will find another folder where you might be containing all the files related to your projects ,after going inside the folder write down the command 'ionic platform add android'... For example:
step1: ionic start MyFirstApp blank
after running this command a folder will be created in which to the drive where you run.
step2: Go inside the folder name 'MyFirstApp' by running command 'cd MyFirstApp'
step3: Then write ionic platform add android
I think this will work for you! Happy Coding
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With