How to make .apk file [duplicate] - android

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.

Related

Unable to find generated app .apk in Android Studio 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.

Android device cannot parse package

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.

Resigned .apk not installing in android [duplicate]

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.

How to make a application build in android (apk file)

Hi i'm new to android my client want to run the app in their on Android Device i go through the many answers through Stack overflow like this:-
How to make .apk file
How to build an APK file in Eclipse?
but i'm unable to make build.
I want to make a build of app in which is usually .apk extension and how i'm able to install this .apk file in my clients android device it doesn't have any eclipse or IDE.
Please suggest me the way or some links regarding this process to build and install the app in clients android device without using eclipse or any IDE.
Thanks in advance.
Eclipse create .apk file of your project by itself and save it in bin folder copy that apk file and send that to client and tell him to save apk on SD card and run directly from SD card. It will work.
the moment you run the app on the emulator or a device, the .apk file is created and put in /%YOUR PROJECT%/bin/app.apk
you can send that to your client...

Parsing Problem in Android apk file installation

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

Categories

Resources