mirror of
https://github.com/apache/cordova-android.git
synced 2025-03-03 16:03:08 +08:00
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;
|
||||
}
|
||||
|
||||
//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 () {
|
||||
|
Loading…
Reference in New Issue
Block a user