I build my project as an android apk. but I have some errors after running the game.
Cocos Creator Version:
You can see the full logs here
I found the problem.
I used ‘window.location.href’ in the web project and so in the android build the URL was not valid. I check the current platform and ignore it in ‘Android’.
if(cc.sys.os != "Android")
let url = new URL(window.location.href);
This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.