[android-developers] Re: Build APK file from command line...
I have tried to write this command line to generate the unsigned apk : apkbuilder.bat %UNSIGNED_FILE_NAME% -u -z %RESOURCE_FOLDER%bin \resources.ap_ -f %RESOURCE_FOLDER%bin\classes.dex -rf %RESOURCE_FOLDER% but an Exception has occured with this message : [ java.util.zip.ZipException: duplicate entry: AndroidManifest.xml ] the RESOURCE_FOLDER folder has tree structure like this : bin + classes.dex + resource.ap_ res AndroidManifest.xml *** I don't understand what happen. If you know about this, please let me know how to resolve this problem... Thanks in advance. ^^ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Build APK file from command line...
You don't want to do -rf RESOURCE_FOLDER, as it'll take any file (except .class) in there and just add it to the archive as is (which means you'll get all the non compiled resources in your zip archive). resources.ap_ already contains your compiled app resources, so that's all you need. Xav On Wed, Sep 30, 2009 at 12:50 AM, Babyboo handsomebo...@gmail.com wrote: I have tried to write this command line to generate the unsigned apk : apkbuilder.bat %UNSIGNED_FILE_NAME% -u -z %RESOURCE_FOLDER%bin \resources.ap_ -f %RESOURCE_FOLDER%bin\classes.dex -rf %RESOURCE_FOLDER% but an Exception has occured with this message : [ java.util.zip.ZipException: duplicate entry: AndroidManifest.xml ] the RESOURCE_FOLDER folder has tree structure like this : bin + classes.dex + resource.ap_ res AndroidManifest.xml *** I don't understand what happen. If you know about this, please let me know how to resolve this problem... Thanks in advance. ^^ -- Xavier Ducrohet Android SDK Tech Lead Google Inc. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Build APK file from command line...
yeah, I finally understand all the signing process with command line. Now all things are done. Thank for your help, Xavier. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Build APK file from command line...
Ok Xavier, I want to send the file-unsigned.apk and file-signed.apk to you. But I don't know how to put it here or somewhere else that you can get it (I don't have any repository account). Can I send the apk files to you by email ??? On Sep 29, 12:01 pm, Xavier Ducrohet x...@android.com wrote: zipalign is only in the tools folder of SDK 1.6 I don't know why your apk doesn't work. can you give us the content of your apk? Xav On Mon, Sep 28, 2009 at 8:01 PM, HandsomeboyIT handsomebo...@gmail.com wrote: And ... I don't know why I didn't find the zipalign tool in Andriod SDK's tools follder or Java-bin folder... -- Xavier Ducrohet Android SDK Tech Lead Google Inc. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Build APK file from command line...
just send me the unsigned one by email. On Tue, Sep 29, 2009 at 3:12 AM, Babyboo handsomebo...@gmail.com wrote: Ok Xavier, I want to send the file-unsigned.apk and file-signed.apk to you. But I don't know how to put it here or somewhere else that you can get it (I don't have any repository account). Can I send the apk files to you by email ??? On Sep 29, 12:01 pm, Xavier Ducrohet x...@android.com wrote: zipalign is only in the tools folder of SDK 1.6 I don't know why your apk doesn't work. can you give us the content of your apk? Xav On Mon, Sep 28, 2009 at 8:01 PM, HandsomeboyIT handsomebo...@gmail.com wrote: And ... I don't know why I didn't find the zipalign tool in Andriod SDK's tools follder or Java-bin folder... -- Xavier Ducrohet Android SDK Tech Lead Google Inc. -- Xavier Ducrohet Android SDK Tech Lead Google Inc. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Build APK file from command line...
I have sent the file to you. Please check and help me to find out the problem in application signing process. I don't what exactly but I think when the application apk is signed, it's XML file in the package has change the header. So the installer can not parse the file for installing. Thank you. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Build APK file from command line...
I have sent the file to you. Please check and help me to find out the problem in application signing process. I don't what exactly but I think when the application apk is signed, it's XML file in the package has change the header. So the installer can not parse the file for installing. Thank you. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Build APK file from command line...
Use the -u option to create an unsigned package and then call jarsigner to sign the generated apk. On Mon, Sep 28, 2009 at 6:52 PM, HandsomeboyIT handsomebo...@gmail.com wrote: Hi everyone, I want to build the .apk file from java binary file (.class) or .dex file. I have copied the bin+res folder and Manifest.xml file to a specified folder. and run the command : [apkbuilder.bat %FILE_NAME% -rf ./src_folderr] this command build the new .APK file with default keystore... But I want to build the APK with me generated keystore, with command line as this : [apkbuilder.bat %FILE_NAME% -rf ./src_folder -storetype path_to_my_release_keystore.keystore] but it can not find my keystore with java.security.KeyStoreException : release.keystore not found How can I build APK file with my keystore file ??? Thanks. -- Xavier Ducrohet Android SDK Tech Lead Google Inc. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Build APK file from command line...
Thanks Xavier, I use these command apkbuilder.bat %FILE_NAME% -u -rf ./project_folder then keytool -genkey -v -keystore path_to_my_keystore.keystore -alias my_alias -keyalg RSA -validity 1 then input some information... The result is like this : Generating 1,024 bit RSA key pair and self-signed certificate (SHA1withRSA) with a validity of 10,000 days. Then, jarsigner -verbose -keystore path_to_my_keystore.keystore %FILE_NAME% my_alias then enter correct passphrase... The result is an APK file with sign. But when I install this APK to emulator/device, It fail with message Failure [INSTALL_FAILED_INVALID_APK]. So now, I don't know how to continue... Please help me ... Thanks in advance. :). On Sep 29, 9:32 am, Xavier Ducrohet x...@android.com wrote: Use the -u option to create an unsigned package and then call jarsigner to sign the generated apk. On Mon, Sep 28, 2009 at 6:52 PM, HandsomeboyIT handsomebo...@gmail.com wrote: Hi everyone, I want to build the .apk file from java binary file (.class) or .dex file. I have copied the bin+res folder and Manifest.xml file to a specified folder. and run the command : [apkbuilder.bat %FILE_NAME% -rf ./src_folderr] this command build the new .APK file with default keystore... But I want to build the APK with me generated keystore, with command line as this : [apkbuilder.bat %FILE_NAME% -rf ./src_folder -storetype path_to_my_release_keystore.keystore] but it can not find my keystore with java.security.KeyStoreException : release.keystore not found How can I build APK file with my keystore file ??? Thanks. -- Xavier Ducrohet Android SDK Tech Lead Google Inc. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Build APK file from command line...
And ... I don't know why I didn't find the zipalign tool in Andriod SDK's tools follder or Java-bin folder... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Build APK file from command line...
zipalign is only in the tools folder of SDK 1.6 I don't know why your apk doesn't work. can you give us the content of your apk? Xav On Mon, Sep 28, 2009 at 8:01 PM, HandsomeboyIT handsomebo...@gmail.com wrote: And ... I don't know why I didn't find the zipalign tool in Andriod SDK's tools follder or Java-bin folder... -- Xavier Ducrohet Android SDK Tech Lead Google Inc. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---