File tree 1 file changed +5
-3
lines changed
1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -256,10 +256,12 @@ class AndroidProjectService extends projectServiceBaseLib.PlatformProjectService
256
256
public removePluginNativeCode ( pluginData : IPluginData ) : IFuture < void > {
257
257
return ( ( ) => {
258
258
let pluginPlatformsFolderPath = this . getPluginPlatformsFolderPath ( pluginData , AndroidProjectService . ANDROID_PLATFORM_NAME ) ;
259
- let pluginJars = this . $fs . enumerateFilesInDirectorySync ( path . join ( pluginPlatformsFolderPath , AndroidProjectService . LIBS_FOLDER_NAME ) ) ;
260
-
261
259
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
+ }
263
265
} ) . future < void > ( ) ( ) ;
264
266
}
265
267
You can’t perform that action at this time.
0 commit comments