During the development of wechat mini-game, the above error prompt appeared when Cocos Creator was just built and clicked on the wechat developer tool.
A, reason analysis recommended a learning exchange group: 1072209430
App. Json can not be found, this is the wechat small program entrance, not wechat small game entrance, wechat small game entrance should be game.json.
This is because the project we entered automatically becomes a small program project, which requires two Settings:
1. Set up a wechat public account, and the service category must be games
2. Set the development mode of wechat developer tools
2. Solution steps
1. Improve the setting of wechat official accounts
Complete the basic setup of your applet. The service category of your applet must be games.
To put it simply: the account previously used for developing small programs cannot be used for small game development, and can only be re-registered. Pay special attention to the selection of service classes.
2. Set the development mode of wechat developer tools
The development mode of wechat developer tools should not be small program mode. Since there is no mini-game mode to choose from, this should be nothing.
By default, you use the AppID of wechat mini program, set the service category as game, enter the wechat developer tool, the development mode column is blank by default.
If you manually select the mini program later, I can’t find a way to switch to mini game mode for the time being. You can only use wechat developer tools to create a new project, leaving the development mode blank by default.
3. Modification of small game projects
In this case, enter your own appID into the project. Config. json file and save it.
However, this wechat developer tool is enough capricious, at this time or error!
So, you have to remove this item and then add it again. If necessary, you can also clean up the data cache and add it again.
Of course, this article is only for the development of micro channel games, if it is micro channel small program or other situations reported this error, it is another matter.