Hi I build my project as an android apk. but I have some errors after running the game.
Cocos Creator Version: Version 3.4.0 Editor:8f5e859 Engine:b11686b Native:28b6bc7 Native(External):a52c327 Engine extensions:a52c327 Editor extensions:d9530a8 Runtimed:9530a8
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.