Android Build Dex Jumbo Mode Ignored
<p>When I try to compile an android project in Intellij IDEA I get </p>

<pre><code>Unable to execute DX
com.android.dex.DexIndexOverflowException: method ID not in [0, 0xffff]: 65536
at com.android.dx.merge.DexMerger$6.updateIndex(DexMerger.java:484)
at com.android.dx.merge.DexMerger$IdMerger.mergeSorted(DexMerger.java:261)
at com.android.dx.merge.DexMerger.mergeMethodIds(DexMerger.java:473)
</code></pre>

<p>Searching I have found these solutions</p>

<p>A) add</p>

<pre><code>android {
    dexOptions {
        jumboMode = true
    }
}
</code></pre>

<p>in <code>buid.gradle</code></p>

<p>or </p>

<p>B) add</p>

<pre><code>dex.force.jumbo=true
</code></pre>

<p>in <code>project.proprerties</code> for non-gradle projects</p>

<p>I haven't any build.gradle so I have tried the second solution adding the line at the end of <code>project.properties</code> in this way</p>

<pre><code># Project target.

target=Google Inc.:Google APIs:23
dex.force.jumbo=true
</code></pre>

<p>Unfortunately this solution doesn't work and get the same error.
My classes aren't too much big and want to avoid Multidex... 
with my surprise this error happens only after the update of the Android support v4 library and Google Play Services to latest release.</p>

<p>Any suggestion?</p>