Skip to content

Commit

Permalink
Fix 'Multiple dex files define BuildConfig'
Browse files Browse the repository at this point in the history
This occurs when running connectedCheck.
  • Loading branch information
tony19 committed Feb 6, 2018
1 parent 0aecb33 commit bb6c406
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions settings.gradle
Original file line number Diff line number Diff line change
@@ -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 <package>/BuildConfig
startParameter.excludedTaskNames = ['generateReleaseBuildConfig', 'generateDebugBuildConfig']

0 comments on commit bb6c406

Please sign in to comment.