报错内容:
nable to parse Build/web1.framework.js.gz! This can happen if build compression was enabled but web server hosting the content was misconfigured to not serve the file with HTTP Response Header "Content-Encoding: gzip" present. Check browser Console and Devtools Network tab to debug.
原因:资源压缩类型设置成了 gzip
ProjectSettings : Player : Compression Format : Gzip
解决方法:Compression Format设置为Disabled即可。资源不压缩带来的问题是资源包变大,彻底解决方法还是要在web服务器上设置支持gzip压缩,这块我不熟悉。