This question already has answers here:
Trying to manually sign android package with jarsigner.exe and install with adb.exe
(3 answers)
Closed 8 years ago.
I am trying to manually add text file into assets folder of .apk using aapt tool or can able to add any ZIP reader. After adding text file I resigned .apk by using jarsigner and aligned it using zipalign.
Here problem is, that the final .apk is not getting installed on my device.
I referred these posts but they didn't help
Can I resign an .apk with a different certificate than what it came with?
Repackage APK file to contain custom assets - what build tool to use?
Android: How to manually add a file to apk?
SOLUTION:
This helps to fix my issue
Device shows Application not installed error
if one application with special package name has been installed on your device, the next instance of that can be installed, only if both of them has the same signature.
so if you want to do that, you must remove the previous one, or you must change package name.
Related
I'm re taking some old app that has been in the Play Store for more than 5 years. However now that all my code is migrated to AST, everything is working and I'm ready to make a new update, I've come to realize that the key for signing the app has a diferent extension name. Now Android Studio ask for a file .jks but my old app used to use a .key file. I haven't find anything online.
The same file will work for Android Studio
for anyone possibly still struggling with this topic-
You may have forgotten the .jks file of that project.
Search for .jks files in File explorer.
Connect it to your project.
I am developing an android app project and I am able to directly load it on my android phone. But I am unable to find the .apk file corresponding to the app. I have already checked out a few stackoverflow pages for how to resolve this, but I am unable to do so.
I do not have a bin folder at all anywhere within my project. The only .apks I am able to find within the folders are the app-debug.apk and related ones.
How do I force generate the apk when I run the project within Android Studio? Such problems do not exist in Eclipse.
Android Studio puts resulting apks in the <your-project-name>/<your-app-name>/build/outputs/apk/ directory. Look here.
If you want to debug the application you can use the app-debug. Otherwise go up to build and press generate signed apk and choose release (if you want it as the final app) or debug for debugging.
I know this question has been asked before but previous answers have not helped me solve my problem. From Eclipse, I've tried exporting the apk or simply copying the apk from the bin file, and sent it to myself via email. However, when I try to install it by opening the attachment, there is a "parse error." I'm not quite sure what the problem is. This has worked before so my device is probably up to date. The other reason would be that the apk would be corrupted, but I don't see how that's possible if I got it directly from Eclipse.
Possible Solutions:
Uninstall any other apps with the same package name
Check: Unknown Sources
Download the apk and open it with something other than your email client/browser such as: Easy Installer
Have you tried generating a unsigned APK? Sometimes Eclipse acts in strange ways and the apk in the bin folder doesn't work.
Try using right click on your project -> Android Tools -> Export Unsigned Application Package
Then select your destination folder.
If the problem persists, as Randy pointed out, uninstall any previous version of that app in your device.
Hope it helped.
This question already has answers here:
Closed 11 years ago.
Possible Duplicate:
How to build .apk file?
Please guide how to make .apk file . I have a knowledge that it is in bin directory and before it was working fine . Now when my application is completed and trying to make .apk file its just coming with 0.97 mb although there are many images in it .when i try to install on phone its says file not supported but directly from eclipse its get installed and work fine .my bin folder contain .dex and resource.ap_ also . Do i need to make them also .
I have tried with export but it was also giving same error on the phone . please help .
If you're using Eclipse, right-click on the project in Package Explorer, then under "Android Tools" choose "Export signed application package". There will be some UI regarding signing key generation/choice, you'll get a chance to provide file name, and then you'll get your APK where you want it.
If you're not using Eclipse, why not?
If Eclipse isn't building a valid .apk file, try fixing the project properties. In the Package Explorer, right click on the project name, then select Android Tools > Fix Project Properties.
Be aware that the .apk file generated in the bin/ directory is signed by a built-in debug signing certificate. This is okay for use in the emulator or in a device dedicated to testing, but for production use, you should sign the .apk with your own certificate. You do this by exporting the .apk as described by Seva. See the guide topic on this subject for details.
I am using androidlive3.0 OS in my virtual box.
I want to install one apk file in that.
I have downloaded that apk file and when I click for installation it is giving me error like "There is some problem in parsing"
How can i solve this problem?
Is your target sdk the level required for Android 3?
Have you exported the apk as a signed APK? You cannot take the apk that is created during development and install it on a device, you need to export (and preferrably sign) it first.
Rgs
AJ