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

前端 未结 8 1143
再見小時候
再見小時候 2020-12-30 01:47

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.

相关标签:
8条回答
  • 2020-12-30 02:05

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

    0 讨论(0)
  • 2020-12-30 02:11

    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

    0 讨论(0)
  • 2020-12-30 02:21

    I had a similar problem but it didn't rebuild the apk file automatically or manually without running the emulator..

    You have to make sure that there are no errors (warnings are okay) on any of your projects in the workspace!! after that, check the Build Automatically option in Project tab in Eclipse! from now on, Eclipse will automatically compile your project to apk all the tim

    0 讨论(0)
  • 2020-12-30 02:22

    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

    0 讨论(0)
  • 2020-12-30 02:22

    On the commandline, if sdk/tools is in your $PATH: run android update project -p . at least once, followed by ant release

    From Eclipse: if Project > Build Automatically is off, Project > Build Project.

    The apk is built in the bin/ directory.

    0 讨论(0)
  • 2020-12-30 02:26

    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.

    0 讨论(0)
提交回复
热议问题