keystore problem

1240 views
Skip to first unread message

曾吉弘

unread,
Jun 1, 2012, 10:44:58 PM6/1/12
to appto...@googlegroups.com
Dear sir: 

   I first upload my AI apk to Google play then realized it must repackage ti with your AppToMarket. The problem is about the keystore, how can I use the original keystore which can be download for AI server?

   Google Play now doesn't let me upload the new .apk from AppToMarket, it says that an apk with the same package name is already existed, please choose it to "upgrade". But due to the keystore problem, I can't upgrade it either... I am pretty lost and don't know how to figure this problem. 

   Please refer to my site(http://www.appinventor.tw) and kindly help me, many thanks for your help.


                                                                                             David.
002.JPG

M. Hossein Amerkashi

unread,
Jun 2, 2012, 8:47:58 AM6/2/12
to 曾吉弘, appto...@googlegroups.com
You have to use the below  password and alias. Copy the AI keystore into a known folder, then in tab1 of AppToMarket, point to that path and put in the below password and alias. Then goto tab 2 and follow from there.
  • Keystore password: "android"
  • Key alias: "androiddebugkey"

Vivek Kumar

unread,
Jun 11, 2012, 1:08:48 AM6/11/12
to appto...@googlegroups.com
Please refer this Link: http://androidhelpcenter.blogspot.in/

Syed Hasan

unread,
Oct 14, 2013, 9:22:33 PM10/14/13
to appto...@googlegroups.com, 曾吉弘
Hi,
when I click the "create new .apk" I found following error on the History box:
14Oct2013_1431.18:  Your Platform: windows 7

14Oct2013_1431.18:  Java Version: 1.7.0_21

14Oct2013_1431.18:  AppToMarket Version: v3.2

14Oct2013_1431.18:  Install folder: C:\android_dev\AppToMarket_v32

14Oct2013_1431.18:  Your data was loaded from: C:\android_dev\AppToMarket_v32\resource\config.txt

14Oct2013_1431.23:  History saved into: AppToMarket.log

14Oct2013_1434.13:  Your Platform: windows 7

14Oct2013_1434.13:  Java Version: 1.7.0_21

14Oct2013_1434.13:  AppToMarket Version: v3.2

14Oct2013_1434.13:  Install folder: C:\android_dev\AppToMarket_v32

14Oct2013_1434.13:  Your data was loaded from: C:\android_dev\AppToMarket_v32\resource\config.txt

14Oct2013_1813.47:  SUCCESS: AppToMarket saved your new configuration file into config.txt file! Also, It made a backup file, from previous config, and placed in the resource folder. Check it out!

14Oct2013_1814.00:  BUTTON CLICKED: Generate

14Oct2013_1814.00:  ERROR:

You already have a keystore file with specified name.
...Please use a different name for keystore. We don't recommend deleting keystore.
...Your selected keystore file is: C:\Users\smhasan\.android
Your keystore HAS TO end with .ks

14Oct2013_1815.17:  BUTTON CLICKED: Generate

14Oct2013_1815.17:  dn is: CN=Syed Mahmudul Hasan, O=smh, OU=your Dept, L=Ottawa, S=ONT, C=Canada

14Oct2013_1815.17: 

14Oct2013_1815.17:  C:\android_dev\AppToMarket_v32>"C:\Program Files (x86)\jre7\bin\keytool.exe"  -genkey -v  -dname "CN=Syed Mahmudul Hasan, OU=smh, O=your Dept, L=Ottawa, S=ONT, C=Canada" -keypass android  -storepass android -keystore "C:\Users\smhasan\.android\ad.ks" -alias androiddebugkey -keyalg RSA -keysize 2048 -validity 10000

14Oct2013_1815.21:  SUCCESS: Keystore was created: C:\Users\smhasan\.android\ad.ks

14Oct2013_1816.34:  SUCCESS: AppToMarket saved your new configuration file into config.txt file! Also, It made a backup file, from previous config, and placed in the resource folder. Check it out!

14Oct2013_1816.45:  SUCCESS: AppToMarket saved your new configuration file into config.txt file! Also, It made a backup file, from previous config, and placed in the resource folder. Check it out!

14Oct2013_1818.37:  BUTTON CLICKED: 1> Decompile

14Oct2013_1818.42:  SUCCESS: your .apk was decompiled into: C:\android_dev\AppToMarket_v32\temp_myDecompiles

14Oct2013_1818.51:  BUTTON CLICKED: 2> Update Manifest

14Oct2013_1818.51:  ERROR: Validation failed. Please see below:
Application name can not be blank

14Oct2013_1819.18:  BUTTON CLICKED: 2> Update Manifest

14Oct2013_1819.18:  SUCCESS: Manifest updated: C:\android_dev\AppToMarket_v32\temp_myDecompiles\AndroidManifest.xml

14Oct2013_1819.18:  Completed updates. If you wish, you many now update androidmanifest.xml here: C:\android_dev\AppToMarket_v32\temp_myDecompiles\AndroidManifest.xml

14Oct2013_1819.33:  writing new .apk file:C:\android_dev\adt-bundle-windows-x86_64-20130917\workspace\NeighbourhoodLocator\bin\NeighbourhoodLocator_new.apk

14Oct2013_1819.34:  ERROR: The new .apk was not generated due to errors

14Oct2013_1820.26:  writing new .apk file:C:\android_dev\adt-bundle-windows-x86_64-20130917\workspace\NeighbourhoodLocator\bin\NeighbourhoodLocator_new.apk

14Oct2013_1820.26:  ERROR: The new .apk was not generated due to errors

14Oct2013_1821.56:  BUTTON CLICKED: 2> Update Manifest

14Oct2013_1821.56:  SUCCESS: Manifest updated: C:\android_dev\AppToMarket_v32\temp_myDecompiles\AndroidManifest.xml

14Oct2013_1821.56:  Completed updates. If you wish, you many now update androidmanifest.xml here: C:\android_dev\AppToMarket_v32\temp_myDecompiles\AndroidManifest.xml

14Oct2013_1822.20:  writing new .apk file:C:\android_dev\adt-bundle-windows-x86_64-20130917\workspace\NeighbourhoodLocator\bin\NeighbourhoodLocator_new.apk

14Oct2013_1822.21:  ERROR: The new .apk was not generated due to errors

14Oct2013_2117.27:  BUTTON CLICKED: Generate

14Oct2013_2117.27:  ERROR:

You already have a keystore file with specified name.
...Please use a different name for keystore. We don't recommend deleting keystore.
...Your selected keystore file is: C:\Users\smhasan\.android\ad.ks

14Oct2013_2117.46:  BUTTON CLICKED: 1> Decompile

14Oct2013_2117.51:  SUCCESS: your .apk was decompiled into: C:\android_dev\AppToMarket_v32\temp_myDecompiles

14Oct2013_2118.33:  BUTTON CLICKED: 2> Update Manifest

14Oct2013_2118.33:  ERROR: Validation failed. Please see below:
Application name can not be blank

14Oct2013_2119.04:  BUTTON CLICKED: 2> Update Manifest

14Oct2013_2119.04:  SUCCESS: Manifest updated: C:\android_dev\AppToMarket_v32\temp_myDecompiles\AndroidManifest.xml

14Oct2013_2119.04:  Completed updates. If you wish, you many now update androidmanifest.xml here: C:\android_dev\AppToMarket_v32\temp_myDecompiles\AndroidManifest.xml

14Oct2013_2119.12:  writing new .apk file:C:\android_dev\adt-bundle-windows-x86_64-20130917\workspace\NeighbourhoodLocator\bin\NeighbourhoodLocator_new.apk

14Oct2013_2119.12:  ERROR: The new .apk was not generated due to errors

14Oct2013_2119.15:  writing new .apk file:C:\android_dev\adt-bundle-windows-x86_64-20130917\workspace\NeighbourhoodLocator\bin\NeighbourhoodLocator_new.apk

14Oct2013_2119.16:  ERROR: The new .apk was not generated due to errors


Please help me with this...
Thanks

wilbury

unread,
Nov 18, 2013, 9:43:59 AM11/18/13
to appto...@googlegroups.com, 曾吉弘
Hello!

I have the same problem.
I have an AI app uploaded to market originally with App Inventor. I'd like to update it with the ApptoMarket program.
I downloaded my app's keystore file (android.keystore) and follow your instructions, but I had an error message when I try to sign the updated and generated "....new.apk" file. : 

8nov.2013_1532.18:  jarsigner: Certificate chain not found for: androiddebugkey.  androiddebugkey must reference a valid KeyStore key entry containing a private key and corresponding public key certificate chain.

18nov.2013_1532.18:  ERROR: There was error in signing your app

Plz help what the problem is?

Dan Bass

unread,
Mar 10, 2014, 6:47:47 PM3/10/14
to appto...@googlegroups.com, 曾吉弘
I have exactly the same problem. 

how do i sign my app with the same certificate as previously, using the same keystore? 
because otherwise I have no way of publishing updates to the play store, pretty problematic!

Probably just me being dim

Thanks

Dan

M. Hossein Amerkashi

unread,
Mar 10, 2014, 7:06:35 PM3/10/14
to Dan Bass, AppToMarket, 曾吉弘
If you used AppToMarket to created your keystore, it means that you used tab 1, provided your invoke, keystore name and generated one. From there on, all you need to do, is to make sure that tab1 points to initial keystore that you generated and has the same user / password / alias. You don't need to re-generate new keystore.

-Hossein.



--
For Java Bridge (sdkBridger), visit http://code.google.com/p/apptomarket/
---
You received this message because you are subscribed to the Google Groups "AppToMarket" group.
To unsubscribe from this group and stop receiving emails from it, send an email to apptomarket...@googlegroups.com.
Visit this group at http://groups.google.com/group/apptomarket.
For more options, visit https://groups.google.com/d/optout.

marwan mostakim

unread,
Mar 23, 2014, 7:45:28 PM3/23/14
to appto...@googlegroups.com, 曾吉弘
Can you Please advise if i can use 
  • Alias - androidkey  as mentioned in other blogs.
  • instead of  
  • Key alias: "androiddebugkey"

On Saturday, June 2, 2012 8:47:58 AM UTC-4, M. Hossein Amerkashi wrote:

marwan mostakim

unread,
Mar 23, 2014, 7:48:20 PM3/23/14
to appto...@googlegroups.com
Hi
As you mentioned to use 
  • Alias - androidkey, can you please advise why not to use Key alias: "androiddebugkey"  is there a difference how the App will behave. Thank you

Bela

unread,
Mar 25, 2014, 12:15:12 PM3/25/14
to appto...@googlegroups.com
Dear Sir,

I have the following error message trying to registrate:
Would you be so kind to help me please?


25márc.2014_1712.58:  BUTTON CLICKED: Generate

25márc.2014_1712.58:  dn is: CN=http://www.manilaexchange.weebly.com, O=Manilaexchange, OU=Manilaexchange, L=Budapest, S=Pest, C=Hungary

25márc.2014_1712.59:  

25márc.2014_1712.59:  G:\wallace\2011 02 03 04 05\programok telepˇt‹filejai\apptomarket\AppToMarket_v31>"C:\Program Files\Java\jre6\bin\keytool.exe"  -genkey -v  -dname "CN=http://www.manilaexchange.weebly.com, OU=Manilaexchange, O=Manilaexchange, L=Budapest, S=Pest, C=Hungary" -keypass 000000  -storepass 000000 -keystore "G:\wallace\2011 02 03 04 05\programok telepít?filejai\apptomarket\AppToMarket_v31\myKeystores\myks.ks" -alias bela -keyalg RSA -keysize 2048 -validity 10000 

25márc.2014_1713.02:  keytool error: java.io.FileNotFoundException: G:\wallace\2011 02 03 04 05\programok telepÝt?filejai\apptomarket\AppToMarket_v31\myKeystores\myks.ks (A fájlnév, a könyvtárnév vagy a kötetcímke szintaxisa nem megfelelő)

25márc.2014_1713.02:  java.io.FileNotFoundException: G:\wallace\2011 02 03 04 05\programok telepÝt?filejai\apptomarket\AppToMarket_v31\myKeystores\myks.ks (A fájlnév, a könyvtárnév vagy a kötetcímke szintaxisa nem megfelelő)

25márc.2014_1713.02:   at java.io.FileOutputStream.open(Native Method)

25márc.2014_1713.02:   at java.io.FileOutputStream.<init>(Unknown Source)

25márc.2014_1713.02:   at java.io.FileOutputStream.<init>(Unknown Source)

25márc.2014_1713.02:   at sun.security.tools.KeyTool.doCommands(Unknown Source)

25márc.2014_1713.02:   at sun.security.tools.KeyTool.run(Unknown Source)

25márc.2014_1713.02:   at sun.security.tools.KeyTool.main(Unknown Source)

25márc.2014_1713.02:  ERROR: Unable to create keystore file

M. Hossein Amerkashi

unread,
Mar 25, 2014, 1:41:05 PM3/25/14
to Bela, AppToMarket
I think its your path (below) that is causing the issue because it has special characters AND spaces. 
Try copying AppToMarket to a folder like c:\tools\AppToMarket and then try again


G:\wallace\2011 02 03 04 05\programok telepÝt?filejai\apptomarket\AppToMarket_v31\myKeystores\myks.ks

Bela

unread,
Mar 26, 2014, 8:56:54 AM3/26/14
to appto...@googlegroups.com, Bela
Thank You very much, it works well!


Reply all
Reply to author
Forward
0 new messages