从 Android Studio 将 Libgdx 游戏导出为可执行 Jar [英] Exporting A Libgdx Game as Executable Jar from Android Studio

查看:34
本文介绍了从 Android Studio 将 Libgdx 游戏导出为可执行 Jar的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

好的,所以我使用 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆