Error: Program type already present: android.support.v4.accessibilityservice.AccessibilityServiceInfoCompat : <p>After upgrading to Android Studio 3.1, I started to get following error during build. Project uses multidex and DX is enabled by default as you would notice in the error. I tried to check dependency graph to understand what is going on but so far have no clue. Interestingly this only fails on my machine. I cleaned up everything, including reinstall etc but nothing worked. </p>

<p>Anyone had the same issue and how did you solve it? Or any direction that I can take a look?</p>

<pre><code>AGPBI: {
    "kind":"error",
    "text":"Program type already present: android.support.v4.accessibilityservice.AccessibilityServiceInfoCompat",
    "sources":[{}],
    "tool":"D8"
}
</code></pre>

<p>This is the task that fails:</p>

<pre><code>transformDexArchiveWithExternalLibsDexMergerForDebug
</code></pre>

<p>I checked similar issues and it seems random things fixes their problem, I'm not sure what is the real cause.</p>
