1

I decided to clean and rebuild my app, because the apk didn't show the code changes. Now after the building I haven't the apk in my bin folder and i can't run the app on my smartphone.

how can i create the apk?

antedesk
  • 756
  • 6
  • 15
  • 30

2 Answers2

4

When you run the project on the emulator, the .apk is generated on the bin directory. Keep in mind that just building the project (and not running it) will not output the apk file into the bin directory.

To export an unsigned .apk from Eclipse, right-click the project in the Package Explorer and select Android Tools > Export Unsigned Application Package. Then specify the file location for the unsigned .apk.

For signed apk:-

Export -> Android -> Export Android Application -> YOUR_PROJECT_NAME -> Create new key store path -> Fill the detail -> Set the .apk location -> Now you can get your .apk file

Now install the generated apk in your mobile.

Note:- I assume there are no errors in the project.

Edit:- Snapshots attached.

Image 1

Image 2

Rahul
  • 44,383
  • 11
  • 84
  • 103
  • ok i tryed to do what you say on my actually project and on another working project, without error, but the result is the same: eclipse could not find the project... i don't understand why... sorry for this silly questions – antedesk Mar 12 '13 at 16:24
  • what did you try? to run it on the emulator? or export it? – Rahul Mar 12 '13 at 16:24
  • to export (sorry), i can't run on the emulator – antedesk Mar 12 '13 at 16:27
  • thank you for your time, the problem was that i'm using external library (google play services) and i checked isLibrary in my project properties. without the check i can generate the apk using the procedure described by you. – antedesk Mar 12 '13 at 16:34
1

I haven't the apk in my bin folder

It might be because of you have error in your code. When you run the project from Eclipse then it will automatically be created by apk builder.

In Eclipse, under Project Props, Build Path option, we can manually set the output folder. Make sure you you not edited this.

Ajay S
  • 48,003
  • 27
  • 91
  • 111
  • 1
    @antedesk Read this thread, It might be issue in your case . http://stackoverflow.com/questions/4778113/android-eclipse-could-not-find-apk – Ajay S Mar 12 '13 at 16:16