Skip to content

Commit 3bb6540

Browse files
Fatme HavaluovaFatme Havaluova
authored andcommitted
Fixes #860
1 parent aced117 commit 3bb6540

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

lib/services/android-project-service.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -256,10 +256,12 @@ class AndroidProjectService extends projectServiceBaseLib.PlatformProjectService
256256
public removePluginNativeCode(pluginData: IPluginData): IFuture<void> {
257257
return (() => {
258258
let pluginPlatformsFolderPath = this.getPluginPlatformsFolderPath(pluginData, AndroidProjectService.ANDROID_PLATFORM_NAME);
259-
let pluginJars = this.$fs.enumerateFilesInDirectorySync(path.join(pluginPlatformsFolderPath, AndroidProjectService.LIBS_FOLDER_NAME));
260-
261259
let libsFolderPath = path.join(pluginPlatformsFolderPath, AndroidProjectService.LIBS_FOLDER_NAME);
262-
_.each(pluginJars, jarName => this.$fs.deleteFile(path.join(libsFolderPath, jarName)).wait());
260+
261+
if(this.$fs.exists(libsFolderPath).wait()) {
262+
let pluginJars = this.$fs.enumerateFilesInDirectorySync(libsFolderPath);
263+
_.each(pluginJars, jarName => this.$fs.deleteFile(path.join(libsFolderPath, jarName)).wait());
264+
}
263265
}).future<void>()();
264266
}
265267

0 commit comments

Comments
 (0)