Titanium JIRA Archive
Appcelerator Community (AC)

[AC-2527] CLI: Building for android device with --build-only still tries to install and launch application

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionDuplicate
Resolution Date2013-06-11T22:58:19.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsAppcelerator CLI, Studio
Labelsandroid, defect
ReporterEric Wing
AssigneeChris Barber
Created2013-06-11T15:50:10.000+0000
Updated2016-03-08T07:41:35.000+0000

Description

I am trying to use ti build to build test APKs via continuous integration/Jenkins. I am using this incantation:
ti build -p android --target device --build-only --android-sdk=/Library/Frameworks/Android/android-sdk
The tool builds an apk which is good. But the problem is that after it finishes building, it tries to install/launch the application and the process hangs. Sometimes I get lucky and the adb process times-out. But other times it hangs forever which is bad for an automated build machine.
[INFO] :   Launching application on device: /Library/Frameworks/Android/android-sdk/platform-tools/adb "-d" "shell" "am" "start" "-a" "android.intent.action.MAIN" "-c" "android.intent.category.LAUNCHER" "-n" "com.foo.mobile.got/.GotActivity" "-f" "0x10200000"
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
[ERROR] :  Install app failed with exit code 255

When using the build-only switch, I expect that I don't need to have a device plugged in and it won't try to install/run on a device.

Comments

  1. Daniel Sefton 2013-06-11

    Hi Eric, I'm going to close this as duplicate of TIMOB-12034 and TIMOB-12745. Please watch those issues instead. I'll bump TIMOB-12034 at least to see if there's any update. Thanks.

JSON Source