title: Cannot cast object 'org.gradle.api.internal... after Update Android Studio
body: <p>after update the android studio to  version <strong>3.3 Build #AI-182.5107.16.33.5199772</strong>, built on December 25, 2018 I began to receive this error message while trying to build my project:</p>
  
  <p><strong>Cannot cast object 'org.gradle.api.internal.collections.SortedSetElementSource@4a6a22ae' with class 'org.gradle.api.internal.collections.SortedSetElementSource' to class 'java.util.TreeSet'</strong>. I've tried to fix it by myself but no success so far. </p>
  
  <p>I've already tried:</p>
  
  <p><strong>Clean project</strong><br>
  <strong>Rebuild Project</strong><br>
  <strong>Invalidate caches</strong></p>
  
  <p><strong>more info:</strong><br>
  Android Studio 3.3
  Build #AI-182.5107.16.33.5199772, built on December 25, 2018<br>
  JRE: 1.8.0_152-release-1248-b01 amd64<br>
  JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o<br>
  Windows 10 10.0</p>
  
  <p>any help would be apreciated.</p>