CB-11964: Do a clean when installing a plugin to et around the bug

This commit is contained in:
Joe Bowser 2016-10-06 11:41:28 -07:00
parent dcada79e06
commit 7d26c51da6

View File

@ -212,6 +212,11 @@ Api.prototype.addPlugin = function (plugin, installOptions) {
installOptions.android_studio = true;
}
//CB-11964: Do a clean when installing the plugin code to get around
//the Gradle bug introduced by the Android Gradle Plugin Version 2.2
//TODO: Delete when the next version of Android Gradle plugin comes out
this.clean();
return PluginManager.get(this.platform, this.locations, project)
.addPlugin(plugin, installOptions)
.then(function () {