Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to make a signed APK in Sencha Touch 2

Dear All,

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.

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.

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"
]
}
like image 463
Amit kumar Avatar asked Nov 14 '22 02:11

Amit kumar


1 Answers

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 guide: http://developer.android.com/tools/publishing/app-signing.html

the keytool is in your java directory

like image 75
im_not_josh Avatar answered Nov 16 '22 03:11

im_not_josh