.cocos-project.json is not found

But this file exists.

This problem appears when I’m trying to build and run Android project (on Ubuntu).
What I did:
I installed Oracle JDK 8, adjusted enviroment variables;
Installed AndroidStudio/SDK/NDK, updated it;
Installed dependencies for cocos.
Installed ant using sudo apt-get install ant;
Adjusted paths for cocos 2d-x (setup.py) and did source /home/user/.bashrc;
I’ve created project cocos new MyGame -p com.MyCompany.MyGame -l cpp -d ~/MyCompany;
Tried to build and run it: cocos run -s ~/MyCompany/MyGame -p android.

Create it manullay :slight_smile:

It was JAVA, I installed it correctly and now this is my problem: Can't build project for Android (Ubuntu) - cocos2d-x - Cocos Forums

No, something goes wrong again:

Hey!

@Gdrop @energyy

I have the same problem!

When I try to run my game on android I get .cocos-project.json is not found

What do You mean it was JAVA? I need some help with this. I’m using Mac btw :wink:

Also it searches the .cocos-project.json in a strange place:

/Users/John/Documents/Repository/MyGame/frameworks/runtime-src/proj.android/.cocos-proj.json is not found

There is no such folder like frameworks in Mygame folder :expressionless:

EDIT:

I created it manually and I think it worked :stuck_out_tongue: