diff --git a/bin/templates/cordova/lib/pluginHandlers.js b/bin/templates/cordova/lib/pluginHandlers.js index f57c2837..e6d7ffdf 100644 --- a/bin/templates/cordova/lib/pluginHandlers.js +++ b/bin/templates/cordova/lib/pluginHandlers.js @@ -320,8 +320,8 @@ function studioPathRemap (obj) { if (!obj.targetDir.includes('app/src/main')) { if (obj.src.endsWith('.java')) { return path.join('app/src/main/java', obj.targetDir.substring(4), path.basename(obj.src)); - } else if (obj.src.endsWith('.xml')) { - // We are making a huge assumption here that XML files will be going to res/xml or values/xml + } else { + // For all other files, add 'app/src/main' to the targetDir if it didn't have it already return path.join('app/src/main', obj.targetDir, path.basename(obj.src)); } }