[
https://issues.apache.org/jira/browse/CB-8452?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14315330#comment-14315330
]
Angela Fowler commented on CB-8452:
-----------------------------------
This fix added to /src/build/makers/android.js works locally and apk is
deployed successfully:
if( !fs.existsSync(binary_path)){
binary_path=path.join(output, 'build', 'outputs',
'apk', 'android-debug.apk');
}
I can submit a pull request for it.
Ideally would be nicer to get the actual apkPath which is returned from mobile
spec build.js run function but this cmd is currently run in the shell from
medic android.js.
> 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: [email protected]
For additional commands, e-mail: [email protected]