android - 如何在 Sencha Touch 2 中制作签名的 APK

标签 android extjs sencha-touch sencha-touch-2 apk

亲爱的,

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

.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" 但没有取得任何成功。亲爱的,我也分享我的整个配置 文件。如果您在配置文件中发现任何错误 请让我知道。任何建议表示赞赏。 提前致谢。

Code in Configuration file is that-:

{
"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"
]
}

最佳答案

这里是创建 key 来签署您的 apk 的指南。 您目前已经使用调试 key 对您的应用程序进行了签名,需要使用 keytool(java 工具)生成一个新的调试 key ,然后使用它对您的 apk 进行签名。 Sencha 指南:http://docs.sencha.com/touch/2-0/#!/guide/native_android

key 工具指南:http://developer.android.com/tools/publishing/app-signing.html

keytool 在你的 java 目录中

关于android - 如何在 Sencha Touch 2 中制作签名的 APK,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11425693/

相关文章:

javascript - 拉力赛应用程序 SDK 2.0 : Call to validate() by managed listener in rallymultiobjectpicker re-filters store

extjs - Ext.Define 中的 Sencha touch 2 事件监听器

extjs - 在 Android 设备或模拟器上查看时,Sencha 触摸应用程序保持在蓝色加载屏幕上

android - @Override 问题

java - SoundPool 中的声音无法在 Android 中加载

ExtJs 3 - 添加监听器

node.js - 从 cmd 运行 cordova 时出现 npm http GET 错误

javascript - Ext.layout.CardLayout 需要全屏吗?

android - 布局有两个 fragment : one fragment and a fragment with the Google Map

java - 我的 RecyclerView 项目添加代码时出现异常