Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Errors with setting up an Ionic app

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.

like image 347
eScoo Avatar asked Apr 19 '15 12:04

eScoo


1 Answers

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

like image 112
VizardCrawler Avatar answered Sep 20 '22 05:09

VizardCrawler