From bb6c406500d21ddc00444941ed817a3d65edd729 Mon Sep 17 00:00:00 2001 From: Tony Trinh Date: Tue, 6 Feb 2018 00:53:16 -0600 Subject: [PATCH] Fix 'Multiple dex files define BuildConfig' This occurs when running connectedCheck. --- settings.gradle | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/settings.gradle b/settings.gradle index 3cb51a2651..9f8f298120 100644 --- a/settings.gradle +++ b/settings.gradle @@ -1 +1,7 @@ include ':logback-android' + +// Don't generate BuildConfig.class or else it will be packaged (and +// android.packagingOptions.exclude doesn't seem to remove it), which +// causes an error in `connectedCheck` task: +// Multiple dex files define /BuildConfig +startParameter.excludedTaskNames = ['generateReleaseBuildConfig', 'generateDebugBuildConfig'] \ No newline at end of file