[SOLVED] Change COCOS_PROJECT_TYPE

I don’t know how or when my COCOS_PROJECT_TYPE has changed from cpp to js. It screwed my sdkbox IAP installation. How can I fix it? I’d like to go back to CPP.

You can just change it in <project root>/.cocos-project.json

This is mine:

{
    "engine_type": "prebuilt",
    "engine_version": "cocos2d-x-3.9",
    "project_type": "cpp"
}

Yours could be different.

Thx slckmoehrle, but my project doesn’t have this file. So I create one and it works… thx once again.
Do you know why this happened?

I think there was an issue with this in older versions of Cocos2d-x, like 3.6 and before…what version are you using?

Now, I’m using 3.8 but before I was using 3.7.
ANW, now it’s working fine. Thank you very much.

Hi @vellozo

If your issue is solved.
May I request you to please mark this thread name with prefix [SOLVED]
as that would help us track.

Thanks