Skip to content

Commit 120969c

Browse files
authored
fix(cli): Avoid AndroidManifest.xml not found error on add (#2400)
1 parent cf2f746 commit 120969c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

cli/src/cordova.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,9 @@ ${applicationXMLEntries.join('\n')}
414414
${rootXMLEntries.join('\n')}
415415
</manifest>`;
416416
content = content.replace(new RegExp(('$PACKAGE_NAME').replace('$', '\\$&'), 'g'), config.app.appId);
417-
await writeFileAsync(manifestPath, content);
417+
if (existsSync(manifestPath)) {
418+
await writeFileAsync(manifestPath, content);
419+
}
418420
}
419421

420422
function getPathParts(path: string) {

0 commit comments

Comments
 (0)