cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Terence Bandoian (JIRA)" <>
Subject [jira] [Created] (CB-13932) APK Not Copied to Visual Studio bin Directory
Date Thu, 01 Mar 2018 13:12:00 GMT
Terence Bandoian created CB-13932:

             Summary: APK Not Copied to Visual Studio bin Directory
                 Key: CB-13932
             Project: Apache Cordova
          Issue Type: Improvement
          Components: cordova-android
    Affects Versions: cordova-android-7.0.0
         Environment: cordova@8.0


Visual Studio 2017

Windows 10
            Reporter: Terence Bandoian
            Assignee: Joe Bowser

With Visual Studio 2017 configured to use the globally installed Cordova CLI (8.0) instead
of the version packaged with Visual Studio, debug APKs generated with cordova-android@7.1.0
are not copied to the project bin directory.

Debug APKs are written to:

Visual Studio apparently expects APKs to be written to:
This prevents initiatiation of a debug session on a device from within Visual Studio.

A simple after_build script such as the following:

module.exports = function (ctx) {
    if (ctx.opts.platforms.indexOf('android') < 0) {

    var fs = ctx.requireCordovaModule('fs'),
        path = ctx.requireCordovaModule('path');

    var src = path.join(

    var dst = path.join(

    fs.copyFileSync(src, dst);

    return 0;
is an effective work-around but the development experience would be improved if it wasn't
necessary to expend the extra effort to determine the cause and implement a solution.

The most recent version of cordova-android that I know of where this is not necessary is 6.3.0. 
I haven't tested 6.4.0 or 7.0.0.

This message was sent by Atlassian JIRA

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

View raw message