Unity released a WeChat mini game, but the reason for the game.json error was not found.

Unity released a WeChat mini game, but the reason for the game.json error was not found.

I encountered the same problem twice a year apart, and the reasons were different both times. Record it so you don’t fall into the trap again.

Reason 1: The applied app ID is a mini program, not a mini game

Solution: Need to modify the service category on the program platform

If it cannot be modified, you can re-register a WeChat applet, which requires a new email address, but there is an upper limit for the number of registrations for a mobile phone, which seems to be 5.


Reason 2: The opened directory is incorrect

When creating a new project, the directory must be designated to the minigame folder under the sdk packaged file, not just the packaged folder.

The above are the two reasons why game.json is not found.

Guess you like

Origin blog.csdn.net/dxs1990/article/details/133789401