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?

 http://code.google.com/p/android/issues/detail?id=830 

-josh



--~--~---------~--~----~------------~-------~--~----~


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.

                         M



--~--~---------~--~----~------------~-------~--~----~



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
soon.Help....




--~--~---------~--~----~------------~-------~--~----~



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]

Hi,

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-
root>development/samples/ApiDemos/src/com/example/android/apis/media/
then open MediaPlayerDemo_Video.java.  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
Android.mk" 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/product_config.mk:211: WARNING: adding test OTA key
============================================
TARGET_PRODUCT=generic
TARGET_BUILD_VARIANT=eng
TARGET_SIMULATOR=false
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm
HOST_ARCH=x86
HOST_OS=linux
HOST_BUILD_TYPE=release
BUILD_ID=
============================================
build/core/main.mk:180: implicitly installing apns-conf_sdk.xml
build/core/copy_headers.mk:15: warning: overriding commands for target
`out/target/product/generic/obj/include/libpv/getactualaacconfig.h'
build/core/copy_headers.mk:15: warning: ignoring old commands for
target `out/target/product/generic/obj/include/libpv/
getactualaacconfig.h'
target R.java/Manifest.java: ApiDemos (out/target/common/obj/APPS/
ApiDemos_intermediates/src/R.stamp)
Aidl: ApiDemos <= development/samples/ApiDemos/src/com/example/
android/
apis/app/IRemoteService.aidl
Aidl: ApiDemos <= development/samples/ApiDemos/src/com/example/
android/
apis/app/IRemoteServiceCallback.aidl
Aidl: ApiDemos <= development/samples/ApiDemos/src/com/example/
android/
apis/app/ISecondary.aidl
target Java: ApiDemos (out/target/common/obj/APPS/
ApiDemos_intermediates/classes)
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/
ApiDemos.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Copying out/target/common/obj/APPS/ApiDemos_intermediates/classes-
full-
debug.jar
Copying: out/target/common/obj/APPS/ApiDemos_intermediates/classes.jar
target Dex: ApiDemos
target Package: ApiDemos (out/target/product/generic/obj/APPS/
ApiDemos_intermediates/package.apk)
target Java: ApiDemosTests (out/target/common/obj/APPS/
ApiDemosTests_intermediates/classes)
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/
classes-
full-debug.jar
Copying: out/target/common/obj/APPS/ApiDemosTests_intermediates/
classes.jar
target Dex: ApiDemosTests
target Package: ApiDemosTests (out/target/product/generic/obj/APPS/
ApiDemosTests_intermediates/package.apk)
Finding NOTICE files: out/target/product/generic/obj/NOTICE_FILES/
hash-
timestamp
Combining NOTICE files: out/target/product/generic/obj/NOTICE.html
gzip -c out/target/product/generic/obj/NOTICE.html > out/target/
product/generic/obj/NOTICE.html.gz
Target system fs image: out/target/product/generic/obj/PACKAGING/
systemimage_unopt_intermediates/system.img
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/
ApiDemos_intermediates/package.apk


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
Failure [INSTALL_FAILED_MISSING_SHARED_LIBRARY]


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


-RCP2278

--~--~---------~--~----~------------~-------~--~----~

2. Something that been bugging me...

Hi,
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).

James

--~--~---------~--~----~------------~-------~--~----~

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