Ok. Thank you very Mark for your support. I was able to fix the
problem and see the maps on the release version successfully. :-)

Here is the summary how I did it:



(1) I found that the Eclipse on my laptop is not using any JDK
(eclipse->windows->prefs->installed JREs). It was pointing to JRE by
default.

(2) Downloaded and installed JDK jdk1.6.0_16

(3) Make eclipse point to above path (remove the default one that
eclipse finds and points to -- see in step 1 to access it)

(4) add path for keytool.exe and jarsigner.exe in environment
variables (should point to \jdk1.6.0_16\bin )

(5) keytool -genkey -v -alias <YOURALIASHERE> -keystore
<YOURKEYSTORENAMEHERE>.keystore -keyalg RSA -validity 300000

(6)keytool -list -alias <YOURALIASHERE> -keystore
<YOURKEYSTORENAMEHERE>.keystore

(7) get finger print from google servers and modify all MapView
references in code

(8) jarsigner -verbose -keystore <YOURKEYSTORENAMEHERE>.keystore
<YOURAPKNAMEHERE>.apk <YOURALIASHERE>

(9) If you get error like:
jarsigner: unable to sign jar: java.util.zip.ZipException: invalid
entry compressed size (expected 940 but got 949 bytes
)

Then, use  Andorid Export to get the unsigned version of apk (for
eclipse). (right click on prj name -> Andorid -> Export unsigned
apk...)

(10) Re-run command in step 8

(11) jarsigner -verify <YOURAPKNAMEHERE>.apk


Happy (weekeend) coding !! :-)

On Aug 30, 9:46 am, Mark Murphy <[email protected]> wrote:
> RainBow wrote:
> > Ok, I tried it earlier than later. :-)
>
> > The jarsigner is now giving this error:
>
> > jarsigner: unable to sign jar: java.util.zip.ZipException: invalid
> > entry compressed size (expected 1603 but got 1627 bytes)
>
> > :-(
>
> This suggests that the APK you built is corrupted. You may wish to check
> out this recent thread and see if it explains what you are seeing:
>
> http://groups.google.com/group/android-beginners/browse_thread/thread...
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://twitter.com/commonsguy
>
> Android 1.5 Programming Books:http://commonsware.com/books.html
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to