Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Couldn't find ionic.config.json file

when i run ionic build android

i get this error -

Couldn't find ionic.config.json file. Are you in an Ionic project?

And i am in the project folder..

Anyone please?

like image 267
user2897282 Avatar asked Aug 28 '16 13:08

user2897282


3 Answers

Go to ionic.io to create a new app. Then create ionic.config.json file in your app's root folder with content like

{
  "name": "your_app_name",
  "app_id": "your_app_id"
}

Then run the command "ionic build android", it should work.

like image 60
flame3 Avatar answered Nov 14 '22 10:11

flame3


After the recent update to the ionic-cli look for a file,
so just rename the file named ionic.project to ionic.config.json

like image 3
Adi Avatar answered Nov 14 '22 11:11

Adi


I had the same problem once, all what I've come up with, is to create a new project, then replace the www folder with my own one, add all plugins. seems to fix the problem.

like image 1
Kml Hr Avatar answered Nov 14 '22 10:11

Kml Hr