如何在 Sencha Touch 2 中制作签名的 APK [英] How to make a signed APK in Sencha Touch 2

查看:18
本文介绍了如何在 Sencha Touch 2 中制作签名的 APK的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的,

我已经成功地使用 Sencha touch 2 制作了一个应用程序,它是在我的 Android 设备上运行良好,也在平板电脑和模拟器上运行.但问题是它显示的 apk 文件无法上传到 Android Market我有一个错误:

I have successfully made an application using Sencha touch 2 it's working fine in my Android device, also on Tablet and emulator. But the problem is that the apk file could not be uploaded on Android Market it shows me a error:

.apk is not signed also validity year 50 Error in Google market -: 
Google Play does not accept apks signed with the debug certificate. 
Create a new certificate that is valid for at least 50 years.

我也更改了我的证书 "configuration":"Release"但没有取得任何成功.亲爱的,我也分享我的整个配置文件.如果在配置文件中发现任何错误请让我知道.任何建议表示赞赏.提前致谢.

I have changed my certificate also "configuration":"Release" but not get any success. Dear i am also sharing my whole configuration file. If you find any of the error inside the configuration file please let me know about it. Any of the suggestion is appreciated. Thank in advance.

配置文件中的代码是-:

{
"applicationName":"navi",
"applicationId":"com.amit.navi",
"versionString":"1.0",
"iconName":"resources/icons/Icon~ipad.png",
"inputPath":"build/native",
"outputPath":"build/",
"configuration":"Release",
"platform":"Android",
"deviceType":"Universal",
"certificatePath":"C:/Documents and Settings/amit/.android/amit.keystore",

"certificateAlias":"alias_name",
"sdkPath":"C:/android-sdk",

"orientations": [
"portrait",
"landscapeLeft",
"landscapeRight",
"portraitUpsideDown"
]
}

推荐答案

这里有一个指南,可以创建用于对您的 apk 进行签名的密钥.您目前已使用调试密钥对您的应用程序进行了签名,并且需要使用 keytool(java 工具)生成一个新的应用程序,然后使用该密钥对您的 apk 进行签名.煎茶指南:http://docs.sencha.com/touch/2-0/#!/guide/native_android

Here is a guide to creating a key to sign your apk with. You have currently signed your app with a debug key and need to generate a new one using keytool (java tool) then sign your apk with that. Sencha guide: http://docs.sencha.com/touch/2-0/#!/guide/native_android

Keytool 指南:http://developer.android.com/tools/publishing/app-signing.html

Keytool guide: http://developer.android.com/tools/publishing/app-signing.html

keytool 在你的 java 目录中

the keytool is in your java directory

这篇关于如何在 Sencha Touch 2 中制作签名的 APK的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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