Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我使用 libGDX 创建游戏。我在 android 端运行良好,但在使用 RoboVM 使其在 iOS 上运行时遇到了真正的困难。问题是我正在使用第三方网络库(alljoyn)。
我尝试引用 .jar 文件,这使得项目可以编译,但我最终得到了 UnsatisfiedLink 异常。
我也尝试过使用 alljoyn static .a 库,但结果相同。
robovm 是否只能通过维护的绑定与 3rd 方库一起使用,还是我错过了一个技巧?
我在这里看到每个平台都有不同版本的库。这让我相信这个库依赖于操作系统 API,所以你需要在 iOS 上使用库的 iOS 版本,而不是 Android 或 Windows 版本。如果您使用 iOS 版本,则必须创建从 Objective-C 到 Java 的代码绑定,如此处所述。
这里有更多关于 robovm 绑定的信息。