From 955d9c5439951a49dab28035e00093123f41d25a Mon Sep 17 00:00:00 2001 From: kezong <379977@qq.com> Date: Mon, 26 Oct 2020 14:33:13 +0800 Subject: [PATCH] allow embed aar that has no AndroidManifest.xml #206 --- .../src/main/java/com/kezong/fataar/LibraryManifestMerger.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source/src/main/java/com/kezong/fataar/LibraryManifestMerger.java b/source/src/main/java/com/kezong/fataar/LibraryManifestMerger.java index 9b8cb2bd..cff69f36 100644 --- a/source/src/main/java/com/kezong/fataar/LibraryManifestMerger.java +++ b/source/src/main/java/com/kezong/fataar/LibraryManifestMerger.java @@ -58,6 +58,9 @@ protected void doFullTaskAction() throws ManifestMerger2.MergeFailureException, List manifestProviders = new ArrayList<>(); if (secondaryManifestFiles != null) { for (final File file : secondaryManifestFiles) { + if (!file.exists()) { + continue; + } manifestProviders.add(new ManifestProvider() { @Override public File getManifest() {