thanks Xav... you are right I need to uninstall 1st...
Thanks a lot... Wesley. On Sat, Aug 23, 2008 at 3:18 AM, Xavier Ducrohet <[EMAIL PROTECTED]> wrote: > You are using the -r option of adb install which will basically do a soft > reinstall, keeping the data of the installed application. > > The fact that it does not fail with an error indicating that there are no > apps to reinstall means that you have somehow already installed a version. > I'm guessing that you managed to install a version from eclipse, signed > with the debug certificate. > > Now, you want to install your application signed with your own personal > certificate, but it is different from the debug one automatically generated > by Eclipse. > > The system cannot do a soft reinstall if the new application certificate > does not match the certificate of the application currently installed. > > Before installing, you must do a full uninstall: "adb uninstall <package>" > Note that package is not "AndroidSubmarine.apk" but the package declared in > the manifest (something like com.mycompany.androidsubmarine) > > This uninstall will remove the application data, and completely clear the > system of the application. > > After this is done, you can do a normal install with "adb install <path to > .apk>" (note that you should not use the -r option in this case). > > Hope this helps. > Xav > > PS: in your jarsigner command line, you do not need to use the -signedjar > option as it's only used by the "verifiy" command. > > > On Fri, Aug 22, 2008 at 1:23 AM, Wesley <[EMAIL PROTECTED]> wrote: > >> hi Xav, >> >> I not really familiar with jarsigner and keytool thing... >> >> this is what I did... >> 1. as u said I export unsigning apk, then I use the apk on this two >> command... >> 2. keytool -genkey -dname "cn=Wesley, ou=Wesley Soft, o=BJSG, c=MY" -alias >> android -keypass and123 -keystore c:\mystore -storepass abc123 -validity 365 >> >> jarsigner -keystore C:\mystore -storepass abc123 -keypass and123 >> -signedjar AndroidSubmarine.jar AndroidSubmarine.apk android >> >> 3. I try to install... using adb... >> >> adb -s emulator-5554 install -r AndroidSubmarine.apk >> 1522 KB/s (0 bytes in 414131.000s) >> pkg: /data/local/tmp/AndroidSubmarine.apk >> Failure [INSTALL_PARSE_FAILED_INCONSISTENT_CERTIFICATES] >> >> it return this error... can u help me??? >> >> Thanks for your times... >> have a nice day... >> >> >> >> Wesley... >> >> >> On Fri, Aug 22, 2008 at 2:24 PM, Xavier Ducrohet <[EMAIL PROTECTED]> wrote: >> >>> If you use the 0.7.1 plugin then it will automatically use a debug >>> key/certificate to sign application when building. >>> >>> When you release your application you will need to export it from Eclipse >>> (see the overview page of the manifest editor, it'll create an unsigned >>> package), and then manually sign it with your personnal certificate, using >>> jarsigner. >>> >>> Xav >>> >>> >>> On Thu, Aug 21, 2008 at 10:52 PM, Wesley <[EMAIL PROTECTED]> wrote: >>> >>>> hi Xav, >>>> >>>> oic... >>>> >>>> thanks for the reply... >>>> >>>> is there means sdk 0.9 need to sign application manually??? I use >>>> eclipse to create project it can install and run, but when I develop use >>>> the >>>> project and adding image to res and so on... it has this problem... means I >>>> need to manually signing the apk with some sort of key??? >>>> >>>> how to signing apk??? >>>> can u show me??? >>>> >>>> >>>> thanks... >>>> have a nice day... >>>> >>>> >>>> Wesley. >>>> >>>> On Fri, Aug 22, 2008 at 12:36 PM, Xavier Ducrohet <[EMAIL PROTECTED]>wrote: >>>> >>>>> You are attempting to install an application that is not signed. >>>>> >>>>> If use ant, you will need to have activityCreator regenerate a new >>>>> build.xml file that contains the proper steps for building/signing your >>>>> application. >>>>> >>>>> More information here: >>>>> http://code.google.com/android/intro/develop-and-debug.html#signing >>>>> >>>>> Xav >>>>> >>>>> On Thu, Aug 21, 2008 at 9:22 PM, Wesley Sagittarius < >>>>> [EMAIL PROTECTED]> wrote: >>>>> >>>>>> >>>>>> I trying the SDK 0.9... my previous application is for m5 one.. >>>>>> >>>>>> I got this error when I wanna to run my application... >>>>>> may I know any one what is that means??? and solution would be??? >>>>>> >>>>>> >>>>>> 08-22 04:13:41.732: ERROR/PackageParser(46): Package >>>>>> com.google.testing has no certificates at entry res/drawable/icon.png; >>>>>> ignoring! >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> Wesley. >>>>>> >>>>>> >>>>>> >>>>> >>>>> >>>>> >>>> >>>> >>>> >>> >>> >>> >> >> >> > > > > --~--~---------~--~----~------------~-------~--~----~ 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] Announcing the new Android 0.9 SDK beta! http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

