简体   繁体   中英

Run my projet to android device In titanium Studio

I work with titanium studio version 3.0.3

When I run my project into Android device, I got the errors:

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

In my eclipse IDE, I can detect my device and run my projects without probleme.

Can I give me some help, how can I deploying my projet to android device In titanium Studio

thanks :)

I use the following little script to launch the app on my device:

$SN variable defines the id of the device. You can get it by running 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. Launch the script from your application folder. You will have to change com.example and com.example.ActivityName to match your configuration.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM