Installation unsuccessful - Package file was not signed correctly

by joshv » Mon, 15 Dec 2008 14:46:05 GMT

Sponsored Links
 I am becoming somewhat terrified of uploading upgrades to my market
apps, because it always seems to break something.

This time around, I followed the exact same process as I always do,
export the unsigned jar, sign it, verify that its signed with
jarsigner -verify and then upload it as an upgrade to the market.

When I attempt to install the app from the market I get "Installation
unsuccessful", with the reason "Package file was not signed
correctly".  Which is somewhat amazing to me, because the upload page
won't let you upload an unsigned jar.

Am I missing something here?  I used the exact same command line to
sign the jar that I've used for the past updates that worked:

jarsigner -verbose -keystore c:\path_to_keystore application.apk quirk

And no, I have NOT changed my certificate, it's been the same since I
created it, and has been used for many previous updates.

Basically at this point I had to remove my app from the market as
nobody can install it.

Any ideas on how to trouble shoot?


Installation unsuccessful - Package file was not signed correctly

by joshv » Mon, 15 Dec 2008 15:48:01 GMT

 Solved my own problem by watching logcat during the installation:

12-15 01:28:27.722: ERROR/PackageParser(56): Package
com.quirkconsulting.ticker has no certificates at entry res/anim/
push_down_in.xml; ignoring!

I removed this particular file, re-exported/signed the apk, and it
worked perfectly.  jarsigner -verify reported this file as signed, but
something about it killed the PackageParser.

Could this be related to this bug? 



Sponsored Links

Installation unsuccessful - Package file was not signed correctly

by Mark K » Tue, 16 Dec 2008 03:25:06 GMT

 Is your self generated certificate valid until 2033? If you use the
default, it will only have a validity of 180 days, use -validity 10000
when generating your cert. Just something to check. Maybe try
generating a new cert.



Installation unsuccessful - Package file was not signed correctly

by joshv » Tue, 16 Dec 2008 04:23:59 GMT

 I followed the instructions properly when creating the cert, and it's
valid until 2033.

As I mentioned, I only had to remove the offending file, re-sign the
apk, and everything worked just fine, with the exact same certificate,
so the cert hasn't expired.

There's either something wrong with the export/packager, or something
wrong with the PackageParser.  I just hope I don't bump into this
again, as it appears to be quite random - there was nothing special
about the animation file that the PackageParser died on.


Installation unsuccessful - Package file was not signed correctly

by Craig » Mon, 06 Apr 2009 17:45:42 GMT

 I published my app on the market, and when I first tried installing it
from there, I got the 'package file was not signed correctly' error.
Uninstalling the unsigned version I was testing with let me install
from the market with no problems. However, from the comments, it looks
like no one else can install my application.

I've put other versions up that worked, and I used the same
certificate, so I'm pretty sure it is not an issue with the validity
days for the certificate.

Any idea what I can do to figure this out?

The name of my application is Bloxors. It will be going up and down as
I try to figure out what the issue is here, but if someone else who is
getting the error can debug it it would be greatly appreciated.

Installation unsuccessful - Package file was not signed correctly

by myth2loki » Wed, 29 Apr 2009 01:07:38 GMT

 I met the same problem,how to fix it?it will drive me crazy


Other Threads

1. Building development/sample apks from android source cod

[Sorry for double post but it doesn't look like my original post
question got transmitted successfully, so I'm reposting my question
again.  Sorry for the annoyance]


I'm trying to build some sample apks in the android source code and
need some help, specifically ApiDemos.apk.  I've downloaded the latest
snapshot of android from repo, but I've been unable to load the
application onto the emulator.  I"m not sure if anyone else is having
the same problem with the latest or is it just the way I'm building.
Can anyone help?  Below are the steps I did:

1) Go to <android-root> then do the following:

2) After everything has finished building, cd to <android-
then open  My goal here is I'd like to be
able to play a video file (local playback)

3) Edit path so it points to the appropriate media file.  In my case:

65                     if (path == "/sdcard/Ratatouille.3gp") {

4) Now attempt to compile and build the apk.  I NEED HELP ON THIS :
(  And I believe this is where I'm stuck.  For some reason I cannot
create this on Eclipse IDE because its complaining that the project
has errors...even though I have not changed it whatsoever except
adding the path to the media.

So instead I tried running make from the console.  Typing "make -f" from the ApiDemos directory doesn't work either, so I'm
assuming I should run make from <android-root>, so that's what I did
and here's the output:

build/core/ WARNING: adding test OTA key
build/core/ implicitly installing apns-conf_sdk.xml
build/core/ warning: overriding commands for target
build/core/ warning: ignoring old commands for
target `out/target/product/generic/obj/include/libpv/
target ApiDemos (out/target/common/obj/APPS/
Aidl: ApiDemos <= development/samples/ApiDemos/src/com/example/
Aidl: ApiDemos <= development/samples/ApiDemos/src/com/example/
Aidl: ApiDemos <= development/samples/ApiDemos/src/com/example/
target Java: ApiDemos (out/target/common/obj/APPS/
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: development/samples/ApiDemos/src/com/example/android/apis/ uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Copying out/target/common/obj/APPS/ApiDemos_intermediates/classes-
Copying: out/target/common/obj/APPS/ApiDemos_intermediates/classes.jar
target Dex: ApiDemos
target Package: ApiDemos (out/target/product/generic/obj/APPS/
target Java: ApiDemosTests (out/target/common/obj/APPS/
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Copying out/target/common/obj/APPS/ApiDemosTests_intermediates/
Copying: out/target/common/obj/APPS/ApiDemosTests_intermediates/
target Dex: ApiDemosTests
target Package: ApiDemosTests (out/target/product/generic/obj/APPS/
Finding NOTICE files: out/target/product/generic/obj/NOTICE_FILES/
Combining NOTICE files: out/target/product/generic/obj/NOTICE.html
gzip -c out/target/product/generic/obj/NOTICE.html > out/target/
Target system fs image: out/target/product/generic/obj/PACKAGING/
Install system fs image: out/target/product/generic/system.img

5) Now, I'm expecting that a "ApiDemos.apk" will get built, but after
doing the search from the <android-root> directory, no ApiDemos.apk
was generated.  Looking at the build output, the only lead I have is
this "package.apk" that is build in "out/target/product/generic/obj/
APPS/ApiDemos_intermediates".  At this point, I'm not sure if I'm
doing things right...but anyway, I have no other leads, so I'm
assuming this package.apk is my ApiDemos application

6) Launched the emulator

7) Ran adb install out/target/product/generic/obj/APPS/

Unfortunately, the application didn't load, but instead saw the
following console error instead from adb:

912 KB/s (1970610 bytes in 2.108s)
       pkg: /data/local/tmp/package.apk

Can anyone point out what I'm doing wrong here?



2. Something that been bugging me...

I'm new to the Android scene but eager to get my feet wet. Something's
been bugging me, though. I keep seeing these IPhone commercials demo-
ing their "Apps." Sure there are some cool ones, and some very similar
to to ones I've seen in the Android Market, but what bugs me is the
end of their commercials where they say "There's an App for just about
everything. ONLY on the IPhone."

How can they get away with such blatant misinformation? I guess the
same way they misleadingly indicated the speed of their 3G web
browsing. But still, it bugs me. Especially when the dedicated Android
Developers I aspire to become part of are so hard at work providing
the same functionality (free for the most part).



3. The Widget used for the Main Menu in android Home Screen

4. Text format in TextView

5. Android USB connectivity

6. Anyone knows the application, who will poll/handle keypad events in user space?

7. NO DISTINCT & NO GROUP BY in ContentResolver's query