从Android Studio将Libgdx游戏导出为可执行Jar [英] Exporting A Libgdx Game as Executable Jar from Android Studio
问题描述
好的,所以我使用Libgdx制作了一个游戏,我希望它是一个android应用程序(这就是为什么我使用android studio的原因),但是我想让没有android手机的朋友试用一下.该项目已经针对台式机和Android进行了设置,是否有任何方法可以将其导出为可执行jar文件?
Okay so I made a game using Libgdx and I intended it to be a android app(which is why i use android studio) but I want to let my friend without android phones try it out. The project is already setup for both desktop and android so is there any way to export this as a executable jar file?
推荐答案
在终端中键入以下命令.请记住,在发出此命令之前,您必须位于LibGDX根目录中.
Type the command below in the terminal. Remember that you have to be in your LibGDX root directory, before issuing this command.
gradlew desktop:dist
更多信息,请访问: https://github.com/libgdx/libgdx/wiki/Gradle-on-the-Commandline#packaging-for-the-desktop
这篇关于从Android Studio将Libgdx游戏导出为可执行Jar的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!