CB-12101: Spot fix to go into next patch release

This closes #346
This commit is contained in:
Joe Bowser 2016-11-01 11:37:50 -07:00
parent 854946e313
commit 3c087c6716

View File

@ -244,7 +244,8 @@ Api.prototype.addPlugin = function (plugin, installOptions) {
// Skip cleaning prepared files when not invoking via cordova CLI.
opts.noPrepare = true;
return self.clean(opts);
if(!(AndroidStudio.isAndroidStudioProject(self.root)))
return self.clean(opts);
})
.then(function () {
return PluginManager.get(self.platform, self.locations, project)