You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Angela Fowler (JIRA)" <ji...@apache.org> on 2015/02/11 01:21:11 UTC
[jira] [Commented] (CB-8452) Medic Android Deploy Error installing
on device
[ https://issues.apache.org/jira/browse/CB-8452?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14315252#comment-14315252 ]
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:
/Users/u/projects/buildbot/slave_android/cordova-android/build/mobilespec/platforms/android/build/outputs/apk/android-debug.apk
> Medic Android Deploy Error installing on device
> -----------------------------------------------
>
> Key: CB-8452
> URL: https://issues.apache.org/jira/browse/CB-8452
> 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 https://issues.apache.org/jira/browse/CB-8033
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org