diff --git a/lib/services/android-project-service.ts b/lib/services/android-project-service.ts index 8aeaeeaee6..b4e3d63f02 100644 --- a/lib/services/android-project-service.ts +++ b/lib/services/android-project-service.ts @@ -362,7 +362,7 @@ export class AndroidProjectService extends projectServiceBaseLib.PlatformProject this.$fs.ensureDirectoryExists(pluginConfigurationDirectoryPath); let isScoped = pluginData.name.indexOf("@") === 0; - let flattenedDependencyName = isScoped ? pluginData.name.substring(pluginData.name.indexOf("/") + 1, pluginData.name.length) : pluginData.name; + let flattenedDependencyName = isScoped ? pluginData.name.replace("/", "_") : pluginData.name; // Copy all resources from plugin let resourcesDestinationDirectoryPath = path.join(this.getPlatformData(projectData).projectRoot, "src", flattenedDependencyName);