eclipse 如何在真正的 Android 设备上部署 Titanium 应用程序?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/7145824/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How to deploy Titanium app on a real Android device?
提问by neoneye
I would like to know how to deploy from TitaniumStudio to a real Android device. I have a titanium app that works in the emulator. But I'm clueless how to get it running on the real device.
我想知道如何从 TitaniumStudio 部署到真正的 Android 设备。我有一个可以在模拟器中运行的钛应用程序。但我不知道如何让它在真实设备上运行。
I know how to deploy my titanium app onto my iPhone using Xcode.
我知道如何使用 Xcode 将我的钛应用部署到我的 iPhone 上。
I have installed Eclipse too, and has managed to deploy a simple HelloWorld.app to real Android device with it.
我也安装了 Eclipse,并设法使用它部署了一个简单的 HelloWorld.app 到真正的 Android 设备。
Update: I have just learned that deploy can be accomplished using the commandline.
更新:我刚刚了解到可以使用命令行完成部署。
[ 12:49:59 ~ ] $ adb install /Users/johndoe/git/helloworld/build/android/bin/app.apk
772 KB/s (2035982 bytes in 2.573s)
pkg: /data/local/tmp/app.apk
Success
[ 12:50:54 ~ ] $
Is there a way to deploy within TitaniumStudio?
有没有办法在 TitaniumStudio 中部署?
采纳答案by Yun
There should be an "Install to Android Device" menu when you right-click on the project in App Explorer or Project Explorer view. There is also a icon in App Explorer toolbar that has the "Android Device" option. You could also see the Getting Started with Titanium Studioguide.
当您在 App Explorer 或 Project Explorer 视图中右键单击项目时,应该会有一个“安装到 Android 设备”菜单。App Explorer 工具栏中还有一个图标,其中包含“Android 设备”选项。您还可以查看Titanium Studio 入门指南。
回答by Mauricio Angulo S.
From the Titanium Studio Guide:
来自钛工作室指南:
Configure your Android device:
- Settings > Applications > Check 'Unknown sources'
- Settings > Applications > Development > Check 'USB Debugging'
- Settings > Applications > Development > Check 'Stay Awake'
Connect your Android Phone to your PC iwth a USB cable
Open your project in Titanium Studio:
- Run Menu in App Explorer Bar > Android Device
配置您的 Android 设备:
- 设置 > 应用程序 > 勾选“未知来源”
- 设置 > 应用程序 > 开发 > 选中“USB 调试”
- 设置 > 应用程序 > 开发 > 勾选“保持清醒”
使用 USB 数据线将您的 Android 手机连接到您的 PC
在 Titanium Studio 中打开您的项目:
- 应用资源管理器栏中的运行菜单 > Android 设备
Wait for the app to load and look for your app on the app drawer on your device, then tap the app to open it.
等待应用程序加载并在设备的应用程序抽屉中查找您的应用程序,然后点击该应用程序将其打开。
回答by Suresh Sharma
In the latest Titanium Studio its very user friendly.You can run your application on device by click on the Option "Run with Device", When you get right click on your project.
在最新的 Titanium Studio 中,它非常用户友好。当您右键单击您的项目时,您可以通过单击“使用设备运行”选项在设备上运行您的应用程序。
回答by ginjoenet
...or choose Install to Android Device...
...或选择安装到 Android 设备...
- when your Mobile is successfully USBconnected to your Computer
- when you rightclick on your project (as already mentioned by the fellows)
- 当您的手机成功通过 USB 连接到您的计算机时
- 当您右键单击您的项目时(正如研究员已经提到的)
回答by Shamoon
Get Titanium Mobileand you can send directly to your Android device
获取Titanium Mobile,您可以直接发送到您的 Android 设备