运行 H2O 模型可以 Android 吗?

Is it possible to run H2O models in Android?

我已经在 H2O and save it as MOJO following this tutorial 中训练了一个模型。

然后,我创建了一个新的 Android 应用程序,其中包含保存的模型和 h2o-genmodel.jar。 Gradle 成功构建 运行s,但是当我尝试在 Android phone 上 运行 它时,我收到以下错误:

Installation did not succeed.
The application could not be installed: INSTALL_FAILED_NO_MATCHING_ABIS
Installation failed due to: 'null'

我的猜测是 jar 文件只为 x86 而不是 arm 芯片生成,但我想知道是否有可能 运行 它在 Android.

实际上它是通过使用 Gradle 依赖项而不是加载 jar 文件来工作的。

implementation 'ai.h2o:h2o-genmodel:3.28.0.3'

感谢@hfarhanahmed 和@TomKraljevic 的帮助。