且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

尝试在 Genymotion 上使用 libgdx 运行 Android 游戏

更新时间:2023-01-24 21:06:31

您应该尝试将 x86 本机库添加到您的 libs 文件夹中,如 这篇文章

You should try to add the x86 native libraries to your libs folder as mentioned in this post

要使用 x86 本机,只需将 x86/文件夹从 nightlies 复制到您的 Android 项目的 libs/文件夹(在 armeabi 和 armeabi-v7a 文件夹旁边).setup-ui 不会自动为您添加这些库.我暂时选择了这种方式,因为 x86 Android 设备非常罕见,而且你只会不必要地扩大 APK 的大小.

To use the x86 natives, simply copy the x86/ folder from the nightlies to your Android project’s libs/ folder (next to the armeabi and armeabi-v7a folder). The setup-ui will not add those libraries for you automatically. I opted to do it this way for the time being as x86 Android devices are super rare, and you’d just blow up the size of your APK unnecessarily.