Skip to main content
Participant
May 18, 2011
Question

Market does not accept apks signed with the debug certificate. Create a new certificate that is vali

  • May 18, 2011
  • 6 replies
  • 9749 views

I have created a mobile application using dreamweaver cs5.5 and built it and used the built and emaluate to simulate the mobile with the application installed and it worked great but when I try to upload it to the android market im getting :

Market does not accept apks signed with the debug certificate. Create a new certificate that is valid for at least 50 years.

Market requires that the certificate used to sign the apk be valid until at least October 22, 2033. Create a new certificate

any help about that please ?????

This topic has been closed for replies.

6 replies

Participant
February 8, 2012

Thanks to @STLBENM and @TomorrowInternet for the guidance!

I'm much more comfortable with Eclipse now and I could have saved many hours just jumping onto Eclipse from the start.

For other newbies like myself, get familiar with AndroidManifest.xml as you can use it to set the permissions for your app (or remove them all if all your app does it provide HTML content).

Another thing to know is that you can set your app icon by replacing the icon.png image in the subfolders under the 'res\' folder. You have to update the AndroidManifest.xml though.

Participant
February 6, 2012

has anyone gotten this working?

I've tried 2 options but no luck.

Option 1:

Attempt to sign the .AP_ file. I can sign it, zip align it but when I try to install on my HTC Sensation, Google Nexus S and Acer Iconia A500 the installation fails. Using ADB Logcat I can see that the error is because classes.dex is missing. I've verified that indeed the classes.dex file is not included in the AP_ file. I tried to manually include the classes.dex file from the bin folder and also the version within the debug APK but none work. It allows me to install the app but the app force closes when I try to run it.

Option 2:

Delete the META-INF folder from the debug version. Sign the APK and zip align it. The APK installs and runs on my HTC Sensation (Gingabread 2.3.x) and Acer Iconia A500 (Honeycomb 3.2.x) but NOT on my Nexus S (Ice Cream Sandwich 4.0.3)

If anyone can explain how I can import the HTML site into Eclipse I'd much appreciate it! I'm tired of trying to work out Dreamweaver!

Participating Frequently
January 30, 2012

Try this Eclipse tutorial: http://wiki.phonegap.com/w/page/30862722/phonegap-android-eclipse-quickstart

Please let me know if you have any question. Good luck.

January 30, 2012

Thank you! You have saved me a very big headache!

Participating Frequently
June 9, 2011

Hi,

I had the same problem and it took me over 20 h to figure it out. You are getting that error message because your are trying to sign the apk files on the bin folder. Actually, you should be using the file with the extension _ap on the bin folder from signature (using keytool amd Jarsigner) and align (using zipalign)  into publication on android market. 

I hope this help. Good luck.

Best,

B.

July 21, 2011

You note that the outputted file in the bin directory with the ap_ extension is the one that should be signed and aligned in order to upload to Android. Can this be accomplished through the command prompt? Does this mean that it is indeed possible to handle this process without the use of Eclipse?

Is the .ap_ file used as the input and an .apk file as the output?

Has anyone found anything helpful here?

What a bummer that Adobe left this gaping hole in their app development solution! Where are the Platform Evangelists when it counts? They have all kinds of tutorials on how to _start_ a PhoneGap project, but none on how to _finish_ one.

Participant
May 29, 2011

Too obscure for for me.

Is there a step by step proceedure anywhere?

Thanks in advance.

Adobe Employee
May 29, 2011

You can use the adt tool in AIR SDK to generate the certificate you need.

The key is you need to generate a certificate that is valid through year 2033.

adt -help

will give you how to use adt.

adt -certificate -cn <name> ( -ou <org-unit> )? ( -o <org-name> )? ( -c <country> )? ( -validityPeriod <years> )? ( 1024-RSA | 2048-RSA ) <pfx-file> <password>

is the command you need to generate the certificate.

You need to set  -validityPeriod 25

that should make your cert valid through 2036.

Here is an example you can use:

adt -certificate -cn You_Name  -validityPeriod 25 2048-RSA  your_cert.pfx  yourPassword

this will generate a cert called your_cert.pfx which is valid through year 2036.

Then use this cert to package your APK file.

Participant
May 29, 2011

thanks. It looks like I have to use Jarsinger to put the two together?

Too bad 5.5 doesn't do this easily for android like it does for air

Participant
May 26, 2011

I have the same problem and i just spent 400.00 bucks on the upgrade I have spent all day on support with this and of course no one can understand my english and all they have been able to is escalate me and tell me they will call me back. I have benn publishing adobe air .apk for a month or two just fine. Why would they promote this upgrade with this major flaw...Currently they have no answers .... just an error from android marketplace stating I need a non-debug certificate.

--------------

UPDATE

Adobe support told me to use the keytool but keytool was not in the sdk that dreamweaver installed ... SO I am going to install the SDK from android and use the keytool in that package... though one would expect that dreamweaver would have though all of this out or at least lead us idots in the right direction with larger road signs...:)

Participating Frequently
May 27, 2011

http://help.adobe.com/en_US/air/build/WSfffb011ac560372f-19aa73f128cc9f05e8-8000.html#WS5b3ccc516d4fbf351e63e3d118666ade46-7f74  You have to add the validityPeriod parameter to the example shown.  See http://help.adobe.com/en_US/air/build/WS901d38e593cd1bac1e63e3d128fc240122-7ffc.html for the command line syntax.