从 Eclipse 到 Android 手机
我在eclipse上做了一个程序。但是如何将程序从 eclipse 获取到我的手机呢?我有一根电缆,因为它可能不会像 appinventor 那样生成二维码,呵呵。我如何在那里安装我的应用程序?
I have made a program on eclipse. But how can I get the program from eclipse to my phone? I have a cable because it probably wont make a QR code like appinventor does huh. How do i install my app on there?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
您需要设置您的机器和手机以便从 eclipse 运行和调试。它包括在您的计算机上获取手机的 USB 驱动程序,以及设置手机进行 USB 调试。
阅读此使用硬件设备 | Android 开发者指南
You need to set up your machine and phone for running and debugging from eclipse. It involves getting the phone's usb driver on your machine, and setting up the phone for usb debugging.
Read this Using Hardware Devices | Android Developer Guide
您只需导出 apk 文件并将其复制到您的手机即可。通过电子邮件发送给自己,蓝牙传输,上传到服务器然后下载到您的手机上......来吧。
You can simply export the apk file and copy it to your phone. Email it to yourself, bluetooth transfer, upload to a server then download on your phone.... come on.
您只需允许设备接受未签名的应用程序和 USB 调试(在设备的应用程序配置中更改此设置)。然后,如果您有驱动程序(您可以将它们安装在 AVD 中),则只需在手机中从 Eclipse 运行该应用程序即可。
You just have to allow the device to accept nonsigned apps and USB debugging (change this in your device's app configuration). Then, if you have the drivers (you can install them within your AVD), you can just run the app from Eclipse in your phone.
在 Windows 中,您需要为您拥有的特定设备安装驱动程序。如果您使用的是 Linux,则有一个 Rules.txt 文件,您必须在其中使用设备 UID 进行条目。检查此链接。
In Windows you will need drivers to install for the particular device that you have. And if you are on Linux, there is a rules.txt file in which you have to make entries with the device UID. Check this link.