• 求助 7.2
  • 在打包后遇到遇到关于hybrid的错误

标题:

我遇到了一个问题: 【问题描述】

我想要实现【X功能】:

但出现【Y现象】:

我经过了以下尝试【思路细节与代码实现】:

但不能解决,报错如下【报错信息/截图】:

我使用【关键词】:

谷歌/百度/必应但找不到答案。请问我该怎么解决?【截图相关代码片段】:

新人学习求助,使用的ET7.2最新,hybrid使用的是默认版本,按照说明测试打包,操作步骤为
编译unity项目->只勾选打包成exe,build 包 -> copyAotdlls -> 同样勾选再次打包 ->运行

报以下错误:

EntryPointNotFoundException: Unable to find an entry point named ‘RuntimeApi_LoadMetadataForAOTAssembly’ in ‘GameAssembly’. Tried the following entry points: Unable to get function ‘RuntimeApi_LoadMetadataForAOTAssembly’ because of ’The requested function was not found (0×06000001) - 找不到指定的程序。 (WinError:0000007f)

at HybridCLR.RuntimeApi.LoadMetadataForAOTAssembly (System.Byte[] dllBytes, HybridCLR.HomologousImageMode mode) [0×00000] in <00000000000000000000000000000000>:0

at ET.HybridCLRHelper.Load () [0×00000] in <00000000000000000000000000000000>:0

at ET.CodeLoader.Start () [0×00000] in <00000000000000000000000000000000>:0

我在hybrid官网下看到这个是关于ios平台打包的问题,但我的选择输出平台是windows,不太明白问题出在哪里,求指教

    2 个月 后

    PIPIHUYU

    你好, 我也同样遇到了这个问题
    unity2020.3.45
    hybirdCLR2.0.5
    同样是更新 hybirdCLR 测试项目 hybridclr_trial-main 下来后, 下载安装 hybirdclr2.0.5插件后,
    通过选择 HybirdCLR -> Build -> win64 构建打包, 再运行 Release-Win64/HybridCLRTrial.exe 后报错如下

    unable to find an entry point named ‘RuntimeApi LoadMetadataForAOTAssembly’ in ‘GameAssembly’

    请问你解决了吗

      5 个月 后

      shl1937 拟解决了吗?同样提问相关问题,正常打包,运行出现EntryPointNotFoundException: Unable to find an entry point named ‘RuntimeApi_LoadMetadataForAOTAssembly’ in ‘GameAssembly’. Tried the following entry points: Unable to get function ‘RuntimeApi_LoadMetadataForAOTAssembly’ because of ’The requested function was not found (0×06000001) - 找不到指定的程序。 (WinError:0000007f)

      at HybridCLR.RuntimeApi.LoadMetadataForAOTAssembly (System.Byte[] dllBytes, HybridCLR.HomologousImageMode mode) [0×00000] in <00000000000000000000000000000000>:0

      at ET.HybridCLRHelper.Load () [0×00000] in <00000000000000000000000000000000>:0

      at ET.CodeLoader.Start () [0×00000] in <00000000000000000000000000000000>:0

      Setting up 4 worker threads for Enlighten.

      安装最新的CLR V3.4.1,哪位大佬可以回复下怎么解决这个问题呢?

      25 天 后
      9 个月 后

      hualin 你好 打包后我也碰到这种问题了。在Mono层调用一下这个方法是什么意思?可以再具体点嘛

      说点什么吧...