Android - Unity as a Library -- Native libraries not loaded

未关闭
#83 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
24/100
Issue 类型
缺陷
描述清晰度
需要澄清
活跃度
停滞
技术栈
android, unity
领域
mobile-dev

调研方向

The report points to the Android Unity as a Library demo and differences in exported AAR files, unity-classes.jar, and script nesting, but names no source files or tests. Start by comparing the demo and the reporter’s project exports and checking how the native libraries are loaded before sendMessage() is called. Done means identifying why the libraries are not loaded and confirming that messages are delivered.

由索引模型根据 Issue 内容生成。

描述

I have been searching for days, I used the exact same implementation guide as in the demo, which worked fine for the demo but when using it on my unity project I keep getting this error when I try and use mUnityPlayer.sendMessage() :

W/Unity: Native libraries not loaded - dropping message for #######.#########

I've looked through the the two projects to find a difference and the only one I see is that in the libs folder when they are exported unity exports multiple .aar folders in our project along with the unity-classes.jar file and just the unity-classes.jar file for the demo. The other difference is our project has these scripts nested instead of just on the top level folder.

I have tried multiple editor versions and that doesn't work either.

Do I need to change the implementation somehow to load the native libraries? Or is this a known bug.

主要语言
Objective-C++
星标
815
派生
252
平均合并
21 小时 42 分钟
30 天内合并 PR
1

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

Unity-Technologies/uaal-example 的其他 Issue

查看 Unity-Technologies/uaal-example 的全部 Issue

相似的 Issue

更多 Mobile Dev Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。