Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2.1.1版本HybirdCLR5.1 ,在线更新没问题,但是吧文件放到streamingassets里面就会提示打开dll的bundle错误,希望host play模式可以把首包打包 #280

Open
aran1177 opened this issue Apr 13, 2024 · 6 comments
Labels
question Further information is requested

Comments

@aran1177
Copy link

Unable to open archive file: jar:file:///data/app/------/base.apk!/assets/HotUpdateAssets/DefaultPackage/b987fc4919e57446a549016d324bd286.bundle
2024-04-13 11:59:35.192 6125-6318 Unity E Failed to read data for the AssetBundle 'b987fc4919e57446a549016d324bd286.bundle'.
2024-04-13 11:59:35.199 6125-6318 Unity E Failed to load assetBundle : defaultpackage_assets_hotupdateassets_assembliespostil2cppstrip.bundle
UnityEngine.Logger:Log(LogType, Object)
YooAsset.AssetBundleFileLoader:Update()
YooAsset.ResourceManager:Update()
YooAsset.ResourcePackage:UpdatePackage()

@aran1177 aran1177 changed the title 2.1.1版本HybirdCLR5.1 ,在线更新没问题,但是吧文件放到streamassets里面就会提示打开dll的bundle错误 2.1.1版本HybirdCLR5.1 ,在线更新没问题,但是吧文件放到streamingassets里面就会提示打开dll的bundle错误 Apr 13, 2024
@aran1177 aran1177 changed the title 2.1.1版本HybirdCLR5.1 ,在线更新没问题,但是吧文件放到streamingassets里面就会提示打开dll的bundle错误 2.1.1版本HybirdCLR5.1 ,在线更新没问题,但是吧文件放到streamingassets里面就会提示打开dll的bundle错误,希望host play模式可以把首包打包 Apr 13, 2024
@gmhevinci
Copy link
Collaborator

你是否有加密处理?

@gmhevinci gmhevinci added the question Further information is requested label Apr 15, 2024
@aran1177
Copy link
Author

无加密。host play如何读取首包。使用官方的示例里面的 fmsnode代码做的,发现他不更新,直接去下载了。yoo工具打包加密为none,clearandcopyall放到了streamingassets里面了。

@aran1177
Copy link
Author

还有项目里面的资源assets/HotUpdateAssets在打包的时候是不是已经被打进去了?那再放streamingassets是不是就有两份资源了?

@gmhevinci
Copy link
Collaborator

host play mode 会优先加载缓存里的资源,如果内置资产里也没有,就去远端下载。

@gmhevinci
Copy link
Collaborator

还有项目里面的资源assets/HotUpdateAssets在打包的时候是不是已经被打进去了?那再放streamingassets是不是就有两份资源了?

这个要看你的个人收集器的配置了。

@gmhevinci
Copy link
Collaborator

至于你遇到的这个问题,你可以在下断点或者打一些关键日志,来确认一下加载路径的文件确定存在。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants