如何在不启动模拟器的情况下在 Eclipse 中将 Android 项目编译为 .apk 文件? [英] How do you compile an Android project into an .apk file in Eclipse without launching the emulator?

查看:19
本文介绍了如何在不启动模拟器的情况下在 Eclipse 中将 Android 项目编译为 .apk 文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我只是想知道,因为我有自己的单独方法可以通过我的网络服务器在我的手机上获取它,而模拟器每次都弹出很烦人.

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.

推荐答案

我遇到了一个问题,在我安装了最新的 SDK 和最新的 Eclipse (Indigo 371) 后,它无法为我构建 APK(没有运行).

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).

试试这个:

转到 Windows -> Preferences -> Android -> Build 并取消选中Skip Packaging and dexing until export or launch",然后重新启动 Eclipse.

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

现在当你构建项目时,你应该得到一个 APK

Now when you do Build Project you should get an APK

这篇关于如何在不启动模拟器的情况下在 Eclipse 中将 Android 项目编译为 .apk 文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆