Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do you compile an Android project into an .apk file in Eclipse without launching the emulator?

I'm just wondering because I have my own seperate method of getting it on my phone via my web server and the emulator is getting annoying popping up every time.

like image 562
trusktr Avatar asked Oct 18 '11 01:10

trusktr


4 Answers

I had a problem that it would not build an APK for me (without Running) after I installed the latest SDK and latest Eclipse (Indigo 371).

Try this:

Go to Windows -> Preferences -> Android -> Build and uncheck "Skip packaging and dexing until export or launch" then restart Eclipse.

Now when you do Build Project you should get an APK

like image 168
Andy Weinstein Avatar answered Nov 10 '22 14:11

Andy Weinstein


Do you use Eclipse with Android ADT plugin? If so, you can use Android Tools/Export Signed Application Package to build the app as apk file

like image 33
romy_ngo Avatar answered Nov 10 '22 15:11

romy_ngo


Not sure if I understand your question right, but you can create an .apk file without running by right clicking your project, and then selecting Export. The Android Application option should be available to you.

like image 3
Sander van't Veer Avatar answered Nov 10 '22 16:11

Sander van't Veer


right click ur project -> select android tools -> and then select export unsigned application and save to a location. Done, ur apk is available

like image 3
Xaid kamil Avatar answered Nov 10 '22 16:11

Xaid kamil