diff --git a/bin/templates/cordova/lib/builders/GenericBuilder.js b/bin/templates/cordova/lib/builders/GenericBuilder.js index 5c4215d6..47d57af9 100644 --- a/bin/templates/cordova/lib/builders/GenericBuilder.js +++ b/bin/templates/cordova/lib/builders/GenericBuilder.js @@ -106,10 +106,14 @@ function apkSorter (fileA, fileB) { } function findOutputApksHelper (dir, build_type, arch) { + console.log("Directory: " + dir); + console.log("Build Type: " + build_type); + console.log("Arch: " + arch); + var shellSilent = shell.config.silent; shell.config.silent = true; - var ret = shell.ls(path.join(dir, '*.apk')).filter(function (candidate) { + var ret = shell.ls(path.join(dir, build_type, '*.apk')).filter(function (candidate) { var apkName = path.basename(candidate); // Need to choose between release and debug .apk. if (build_type === 'debug') {