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

查看:214
本文介绍了从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天全站免登陆