问题描述
我想在手机上生成一个新的.apk"文件(我的应用程序市场中的一个功能,如应用程序),我必须在安装之前对其进行签名.我想我必须在手机上运行 JarSigner.
I want to generate an new ".apk" file on the phone (a function in my app-market like app), and I have to sign it before install it. I think I have to run the JarSigner on the phone.
JarSigner 在以下两个项目中找到:OpenJDK 和 GCC-libjava.
JarSigner is found in the following two project: OpenJDK and GCC-libjava.
我尝试包含从 Internet 下载的 OpenJDK.jar,但其中没有 JarSigner 类.
I have tried to include OpenJDK.jar I downloaded from Internet but it doesn't have JarSigner class in it.
我也尝试将 OpenJDK 源中的 JarSigner.java 添加到我的 Android APP 项目中,但依赖项太多了.与 GCC-LibJAVA 中的 JarSigner.java 相同.
I also have tried to add JarSigner.java from OpenJDK source to my Android APP Project, but the dependencies are way too much. Same with JarSigner.java from GCC-LibJAVA.
为 Android 实现新的 JarSigner 太难了.
it's too difficult to implement a new JarSigner for Android.
推荐答案
如果你想用手机创建 .apk,看看这个:
If you want to create .apk using your phone , have a look at this :
JavaIDEdroid 允许您在 Android 设备上创建原生 Android 应用程序.
JavaIDEdroid allows you to create native Android applications on Android devices.
http://code.google.com/p/java-ide-droid/
这篇关于如何签署“.apk"Android 手机上的文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!