Solve the environment conflict with Cocos.
Merge pull request #9458 from natural-law/v3

Solve the environment conflict with Cocos.