forked from github/cordova-android
CB-11964: Do a clean when installing a plugin to et around the bug
This commit is contained in:
parent
dcada79e06
commit
7d26c51da6
5
bin/templates/cordova/Api.js
vendored
5
bin/templates/cordova/Api.js
vendored
@ -212,6 +212,11 @@ Api.prototype.addPlugin = function (plugin, installOptions) {
|
|||||||
installOptions.android_studio = true;
|
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)
|
return PluginManager.get(this.platform, this.locations, project)
|
||||||
.addPlugin(plugin, installOptions)
|
.addPlugin(plugin, installOptions)
|
||||||
.then(function () {
|
.then(function () {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user