From 1f655a7e172960a618613441e215e9aeaae70bf2 Mon Sep 17 00:00:00 2001 From: kezong <379977@qq.com> Date: Sun, 13 Dec 2020 09:52:31 +0800 Subject: [PATCH] print error log information above of throwable --- .../src/main/groovy/com/kezong/fataar/VariantProcessor.groovy | 2 +- .../src/main/java/com/kezong/fataar/LibraryManifestMerger.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/source/src/main/groovy/com/kezong/fataar/VariantProcessor.groovy b/source/src/main/groovy/com/kezong/fataar/VariantProcessor.groovy index aec61593..47d93baf 100644 --- a/source/src/main/groovy/com/kezong/fataar/VariantProcessor.groovy +++ b/source/src/main/groovy/com/kezong/fataar/VariantProcessor.groovy @@ -558,10 +558,10 @@ class VariantProcessor { } FatUtils.mergeFiles(files, of) } catch (Exception e) { - e.printStackTrace() FatUtils.logAnytime(("If you see this error message, please submit issue to " + "https://github.com/kezong/fat-aar-android/issues with version of AGP and Gradle. Thank you.") ) + e.printStackTrace() } } } diff --git a/source/src/main/java/com/kezong/fataar/LibraryManifestMerger.java b/source/src/main/java/com/kezong/fataar/LibraryManifestMerger.java index 628ae1b7..552f78a0 100644 --- a/source/src/main/java/com/kezong/fataar/LibraryManifestMerger.java +++ b/source/src/main/java/com/kezong/fataar/LibraryManifestMerger.java @@ -40,11 +40,11 @@ protected void doTaskAction() { try { doFullTaskAction(); } catch (Exception e) { - e.printStackTrace(); System.out.println("Gradle Plugin Version:" + mGradlePluginVersion); System.out.println("Gradle Version:" + mGradleVersion); System.out.println("If you see this error message, please submit issue to " + "https://github.com/kezong/fat-aar-android/issues with Gradle version. Thank you."); + e.printStackTrace(); } }