Compiling for android studio gives a weird error

I have created a new project using v3.15 for cocos2d-js .
And compiled it for android studio , a weird error comes

cocos compile -p android --android-studio.

Building mode: debug
Using Android Studio project : E:\Workspace\Cocos2d-js\TetriMatch\frameworks\runtime-src\proj.android-studio
Configuration file ‘E:\Workspace\Cocos2d-js\TetriMatch\frameworks\runtime-src\proj.android-studio\build-cfg.json’ is not existed or broken!

This happened to my project because I replaced my cocos2d folder with a new version (from 3.13.1 to 3.15.0) but forget to change the “engine_version” in the file .cocos-project.json.

In your case it can be a permission issue.
I read somewhere that you can create a “cocos-project.json” (without the leading dot) and it will work.