简体   繁体   English

Javafxports 和 Gluon 魅力 - 如何在不将 Android 连接到 PC 的情况下生成 apk

[英]Javafxports and Gluon charm - How to generate apk without connecting an Android to PC

I have tested an Android application by connecting my PC to my smartphone ARCHOS Diamond.我已经通过将我的 PC 连接到我的智能手机 ARCHOS Diamond 来测试一个 Android 应用程序。 With Eclipse, from Java program including JavaFX, I can generate an .apk file by executing the install Gradle task.使用 Eclipse,从包括 JavaFX 的 Java 程序,我可以通过执行安装 Gradle 任务生成一个 .apk 文件。

But, this .apk is dedicated to my phone但是,这个 .apk 专用于我的手机

Now, I want to spread my application on other Android phones.现在,我想在其他 Android 手机上传播我的应用程序。 But I don't want to get as many kinds of phones for generating their .apk.但我不想得到那么多种类的手机来生成他们的 .apk。

How can I do to generate .apk dedicated to HW and Android versions, without having these phones?如果没有这些手机,我该如何生成专用于硬件和 Android 版本的 .apk? And, if it possible to generate them, how to be sure that these apk work fine?而且,如果可以生成它们,如何确保这些 apk 工作正常?

Thanks谢谢

If you are using the Eclipse plugin.如果您使用的是 Eclipse 插件。

Right click on the project > Android Tools > Export Signed Application Package右键单击项目 > Android 工具 > 导出签名的应用程序包

Follow the instructions for creating a .keystore file and you're sorted!按照创建 .keystore 文件的说明进行操作即可!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM