cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Angela Fowler (JIRA)" <>
Subject [jira] [Commented] (CB-8452) Medic Android Deploy Error installing on device
Date Wed, 11 Feb 2015 00:21:11 GMT


Angela Fowler commented on CB-8452:

I updated the buildbot copy of src/build/makers/android/deploy.js to log the adb command.
Then ran the "Run Tests" step on its own using
   $node medic/build_android.js
This shows that the apk path is incorrect:
adb -s emulator-5554 install -r /Users/x/projects/buildbot/slave_android/cordova-android/build/mobilespec/platforms/android/ant-build/MainActivity-debug.apk

The apk binary_path is set in src/build/makers/android.js (variable named ant but actually
a gradle build) :
shell exec cd /Users/x/projects/buildbot/slave_android/cordova-android/build/mobilespec/platforms/android
&& cordova/build --debug

Running the build command on its own shows the apk path is actually:

> Medic Android Deploy Error installing on device
> -----------------------------------------------
>                 Key: CB-8452
>                 URL:
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android, Medic
>    Affects Versions: 4.0.0
>         Environment: Mac
>            Reporter: Angela Fowler
> In the run tests step the deploy fails.
> http://localhost:8010/builders/cordova-android/builds/15/steps/Run%20tests/logs/stdio
> [ANDROID] Modifying Cordova android application. (sha: Android__master__1423552256)
> [ANDROID] Compiling. (sha: Android__master__1423552256)
> [ANDROID] Compile exit:0 (sha: Android__master__1423552256)
> [ANDROID] deploying to discovered devices:[object Object] (sha: Android__master__1423552256)
> [ANDROID] [DEPLOY] Target: 1 Android(s). (Android__master__1423552256)
> [ANDROID] [DEPLOY] Installing on device emulator-5554 (Android__master__1423552256)
> [ANDROID] [DEPLOY] Error installing on device emulator-5554 (Android__master__1423552256)
> Android test prepare failed
> program finished with exit code 1
> The mobilespec apk from the slave build folder installs ok by manually running adb install.
> I would like to add some debugging to src/build/makers/android/deploy.js to log the adb
command the step is using but the file is overwritten by the npm install from the "Install
Medic" step. 
> Tried to define a local repo for cordova-medic in cordova-repos.json. This issue mentions
the ignored repos but may not cover npm install

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message