[英]Run my projet to android device In titanium Studio
I work with titanium studio version 3.0.3 我使用Titan Studio版本3.0.3
When I run my project into Android device, I got the errors: 当我将项目运行到Android设备中时,出现以下错误:
[ERROR] : Project failed to build after 287ms
It can not detect my device. 它无法检测到我的设备。
I installed the USB driver for sumsung and i configure Android device by Enable Unknown sources and Enable USB debugging. 我安装了sumsung的USB驱动程序,并通过“启用未知来源”和“启用USB调试”来配置Android设备。
In my eclipse IDE, I can detect my device and run my projects without probleme. 在我的Eclipse IDE中,我可以检测到我的设备并运行我的项目而不会出现问题。
Can I give me some help, how can I deploying my projet to android device In titanium Studio 我可以给我一些帮助吗,如何在Titan Studio中将我的projet部署到android设备上?
thanks :) 谢谢 :)
I use the following little script to launch the app on my device: 我使用以下小脚本在设备上启动应用程序:
$SN
variable defines the id of the device. $SN
变量定义设备的ID。 You can get it by running adb devices
您可以通过运行adb devices
来获取它
ti build -p android --build-only;
adb -s $SN uninstall com.example;
adb -s $SN install build/android/bin/applicationName.apk ;
adb -s $SN shell am start com.example/com.example.ActivityName
If you want to keep your application data in place, you should do the following: 如果要保留应用程序数据,则应执行以下操作:
adb -s $SN install build/android/bin/applicationName.apk ;
I'm assuming you have configured your PATH correctly. 我假设您已经正确配置了PATH。 Launch the script from your application folder. 从您的应用程序文件夹中启动脚本。 You will have to change com.example
and com.example.ActivityName
to match your configuration. 您将必须更改com.example
和com.example.ActivityName
以匹配您的配置。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.