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

[Unity] Bug: Android 6的手机会报DllNotFoundException: Unable to load DLL 'puerts'的错误 #1909

Open
3 tasks done
huntwx opened this issue Nov 12, 2024 · 3 comments
Open
3 tasks done
Assignees
Labels
bug Something isn't working Unity

Comments

@huntwx
Copy link

huntwx commented Nov 12, 2024

前置阅读 | Pre-reading

Puer的版本 | Puer Version

Unity_v2.0.5

Unity的版本 | Unity Version

2022.3.45

发生在哪个平台 | Platform

Android

错误信息 | Error Message

DllNotFoundException: Unable to load DLL 'puerts'. Tried the load the following dynamic libraries: Unable to load dynamic library 'puerts' because of 'Failed to open the requested dynamic library (0x06000000) dlerror() = dlopen failed: library "puerts" not found
at Puerts.PuertsDLL._GetApiLevel () [0x00000] in <00000000000000000000000000000000>:0
at Puerts.PuertsDLL.GetApiLevel () [0x00000] in <00000000000000000000000000000000>:0
at Puerts.JsEnv..ctor (Puerts.ILoader loader, System.Int32 debugPort, System.IntPtr externalRuntime, System.IntPtr externalContext) [0x00000] in <00000000000000000000000000000000>:0

问题重现 | Bug reproduce

点击游戏图标运行游戏

@huntwx huntwx added bug Something isn't working Unity labels Nov 12, 2024
@chexiongsheng
Copy link
Collaborator

你试试自己编译一个8.4的,参考这:https://puerts.github.io/docs/puerts/unity/other/building
参数如下
node ../cli make --backend v8 --platform android --config Release

@chexiongsheng
Copy link
Collaborator

我找了一个android 5的机器,也能跑。

@chexiongsheng
Copy link
Collaborator

群上交流是用的nodejs版本的原因。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Unity
Projects
None yet
Development

No branches or pull requests

2 participants