From 348b1b4dda1525d0eab51bb851d3dbe6699bdf26 Mon Sep 17 00:00:00 2001 From: Jesse MacFadyen Date: Thu, 3 Nov 2016 10:57:41 -0700 Subject: [PATCH] Do not test for non-existent build folder This closes #348 --- bin/templates/cordova/lib/AndroidStudio.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/templates/cordova/lib/AndroidStudio.js b/bin/templates/cordova/lib/AndroidStudio.js index 3b1e3d41..335b334b 100644 --- a/bin/templates/cordova/lib/AndroidStudio.js +++ b/bin/templates/cordova/lib/AndroidStudio.js @@ -12,7 +12,7 @@ var CordovaError = require('cordova-common').CordovaError; module.exports.isAndroidStudioProject = function isAndroidStudioProject(root) { var eclipseFiles = ['AndroidManifest.xml', 'libs', 'res', 'project.properties', 'platform_www']; - var androidStudioFiles = ['app', 'gradle', 'build', 'app/src/main/res']; + var androidStudioFiles = ['app', 'gradle', 'app/src/main/res']; // assume it is an AS project and not an Eclipse project var isEclipse = false; @@ -33,6 +33,7 @@ module.exports.isAndroidStudioProject = function isAndroidStudioProject(root) { if(!isEclipse) { androidStudioFiles.forEach(function(file){ if(!fs.existsSync(path.join(root, file))) { + console.log('missing file :: ' + file); isAS = false; } });