Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
7.1.0
-
None
-
cordova 8.0.0
android 7.1.0
windows 10
Eclipse neon
-
Patch, Important
Description
Programming error in check_reqs.js, line 130
programmer doesnt iterate through a directory for gradle, checks only for first entry
var dirs = fs.readdirSync(androidStudioPath);
if (dirs[0].split('-')[0] === 'gradle') {
return path.join(androidStudioPath, dirs[0], 'bin', 'gradle');
}
working solution
var dirs = fs.readdirSync(androidStudioPath);
for (var i = 0; i< dirs.length ; i++){
if (dirs[i].split('-')[0] === 'gradle')
return path.join(androidStudioPath, dirs[i], 'bin', 'gradle');
}