I have built an application using Eclipse IDE and then when I try to "Export Signed application" - I fill out the forms and create keys and other things that I'm supposed to do. But I cannot find the APK file at the destination I specify. I know that there's an APK file under bin but it's not zipaligned.
Same thing with Zipalign when I specify the output file, I cannot see the output file although it says "Verification successful". I have tried running Eclipse under Administrator mode but doesn't matter. Thanks!
Related
I am using a windows 10 OS. I had the jks file in desktop. Then i gave the path to the file and built a signed apk. It was fine. Then i moved the jks file to another location. When I tried to build a signed apk, I gave the new location in the dialogue window. But the build failed. The message said, jks file was not found in desktop. Why android studio is still looking for the file in desktop even after changing the location? Should I change the path in some other place too?
If I were in a similar situation I would invalidate cache and restart first, then when building signed apk I would give keystore path again by clicking "Choose existing..." and proceed.
For some reason I need to change android rom zip file. But when I change add/remove content, my rom cant be installed. Its need to be resigned.
I want to know if there is any simple command in Mac OS by which I can sign the rom.zip file
I guess you don't have eclipse installed (it can sign your applications automatically)
First, download the signing tools and extract them anywhere
http://goo.gl/lRNlE8
Copy your zip or apk files to signing tools folder
And run the following command:
java -Xmx1024m -jar signapk.jar -w testkey.x509.pem testkey.pk8 my_rom.zip my_signed_rom.zip
Replace my_rom.zip with the name of the file you want to sign and my_signed_rom.zip with the new name you want to give to your zip or apk.
Please note the signing tools contain test keys, make sure to replace them with your own.
If you want to know more about app signing, I suggest you go directly to the source:
http://developer.android.com/tools/publishing/app-signing.html
I am trying to Sign up APK to upload it on to the Play Store Market. I am following the steps underlined here
I am getting the following error
When i try to Sign the Application using Eclipse project->Android Tools->Export Signed Application Package.
You don't need to do it with commands. In Eclipse, right click on your project->Android Tools->Export Signed Application Package.
Follow the wizard and you will have an signed apk without pain.
Edit:
After a quick search about the new error, this thread seems to contain possible fix for you. At instance, please try to clean your project and build it again. If it does not fix your problem, also try the fix mentioned in the link.
Copy your keystore file to a directory which has no spaces. Your current path is C:\Program Files (x86)\Java\jdk1.6.0_27\bin\my-release-key.keystore which contains the directory Program Files (x86) with spaces. JarSigner cannot identify directories with spaces.
Can anyone tell me how to zipalign my .apk file with using eclipse. I have made my .apk file by giving command like,
Right Click on Project Folder
Click on "Android Tools" option from menu.
Click on "Export Signed Application Package..." and my .apk generated in given application alias.
Now want to do zipalign for this above generated .apk file. Does any tool require to do so OR anything that can solve my problem.
If you did what you described above then Eclipse has already zipaligned your apk for you. You can't zipalign an already zipaligned package
I think this will help you
D:\android-sdk\android-sdk\tools>zipalign -f -v 4 "C:\Users\name\Desktop\project_name\projectname_signed.apk" "C:\Users\name\Desktop\project_name\projectname__zipaligned.apk"
Using the steps given, Eclipse will do zipalign for you.
This is a very tricky part and initially i was also ran in to strange problems . Before uploading to android market you must do the following steps.
Create a Certificate
Signing your application apk
Finally Zip align the signed apk
Check this site: How to sign Android project apk
Eclipse zipalign APKs when you export them by default.
zipalign is basically a tool available in tools directory of your android sdk.
In case you are not using eclipse to build, you can use this tool directly to zipalign your apk.
zipalign [-f] [-v] <alignment> infile.apk outfile.apk
The alignment is an integer that defines the byte-alignment boundaries. This must always be 4 (which provides 32-bit alignment) or else it effectively does nothing.
For more detail, check this link
http://developer.android.com/tools/help/zipalign.html
If you to signed and zip aligned your APK file, so that you could redistribute your file and upload it play store. Then follow these simple steps
Open Eclipse
File--> Export
Browse-->Select your project
Next-->Next
So, after all of that you will get an APK which will be signed and zip aligned.
Eclipse zipalign apk automatically. When you export the project, eclipse must be generating signed apk to a different destination. Check properly where it prompts when you generate a signed apk
Eclipse automatically zipaligns your .apk file if you did what you described above.
I just press right on my appproject and choose Android Tools --> Export Unsigned Application Package...
But if i want to install the apk on my phone the install process dont finish
What do i have made wrong?
In eclipse you you go to run->build or if you have build automatically turned on you can go into the projects file structure and just copy the .apk file out of the bin folder. You can put this on the devices SD card and install it from there. No need to do the export unsigned apk thing.
The .apk must be signed.
Eclipse auto-generates an .apk signed with a debugging key at bin/YourApp.apk. It's ok to use this file for testing purposes, but you shouldn't give this .apk to customers or end-users because you won't be able to update this app in the future.
If you intend to publish this .apk to your customers you should use your own key to sign the .apk. Read: Signing Your Applications
Make sure you enabled 'Unknown sources' within the applications section of your phone settings.
If you already running your project on emulator,you just close that emulator.And goes to
Project->clean
Project->BuildProject.
And then run your project in emulator and then check it out
bin/res/your.apk file
You should use "Export Signed" instead of "Export Unassigned".
Google does not allow Android System to install "Export Unassigned" apk, see here -> http://developer.android.com/tools/publishing/app-signing.html.
To "Export signed", read here -> http://www.srccodes.com/p/article/23/build-android-application-package-file-apk-using-eclipse-ide-and-android-development-tools-adt-plugin