title: Android studio + kotlin compilation error
body: <p>I was modifying my app and when I ran it again, it threw me a big error, I don't think it's my code because my code doesn't have errors, but I think it's an error due to dependencies (I hope)
  but I better ask so as not to spoil the application and that the problem is even bigger
  This is the error it throws:</p>
  <pre><code>&gt; Task :app:mergeDexDebug
  AGPBI: {&quot;kind&quot;:&quot;error&quot;,&quot;text&quot;:&quot;Cannot fit requested classes in a single dex file (# methods: 66078 &gt; 65536)&quot;,&quot;sources&quot;:[{}],&quot;tool&quot;:&quot;D8&quot;}
  com.android.builder.dexing.DexArchiveMergerException: Error while merging dex archives: 
  The number of method references in a .dex file cannot exceed 64K.
  Learn how to resolve this issue at https://developer.android.com/tools/building/multidex.html
      at com.android.builder.dexing.D8DexArchiveMerger.getExceptionToRethrow(D8DexArchiveMerger.java:132)
      at com.android.builder.dexing.D8DexArchiveMerger.mergeDexArchives(D8DexArchiveMerger.java:119)
      at com.android.build.gradle.internal.transforms.DexMergerTransformCallable.call(DexMergerTransformCallable.java:102)
      at com.android.build.gradle.internal.tasks.DexMergingTaskRunnable.run(DexMergingTask.kt:441)
      at com.android.build.gradle.internal.tasks.Workers$ActionFacade.run(Workers.kt:242)
      at org.gradle.workers.internal.AdapterWorkAction.execute(AdapterWorkAction.java:50)
      at org.gradle.workers.internal.DefaultWorkerServer.execute(DefaultWorkerServer.java:50)
      at org.gradle.workers.internal.NoIsolationWorkerFactory$1$1.create(NoIsolationWorkerFactory.java:63)
      at org.gradle.workers.internal.NoIsolationWorkerFactory$1$1.create(NoIsolationWorkerFactory.java:59)
      at org.gradle.internal.classloader.ClassLoaderUtils.executeInClassloader(ClassLoaderUtils.java:98)
      at org.gradle.workers.internal.NoIsolationWorkerFactory$1.lambda$execute$0(NoIsolationWorkerFactory.java:59)
      at org.gradle.workers.internal.AbstractWorker$1.call(AbstractWorker.java:44)
      at org.gradle.workers.internal.AbstractWorker$1.call(AbstractWorker.java:41)
      at org.gradle.internal.operations.DefaultBuildOperationExecutor$CallableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:416)
      at org.gradle.internal.operations.DefaultBuildOperationExecutor$CallableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:406)
      at org.gradle.internal.operations.DefaultBuildOperationExecutor$1.execute(DefaultBuildOperationExecutor.java:165)
      at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:250)
      at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:158)
      at org.gradle.internal.operations.DefaultBuildOperationExecutor.call(DefaultBuildOperationExecutor.java:102)
      at org.gradle.internal.operations.DelegatingBuildOperationExecutor.call(DelegatingBuildOperationExecutor.java:36)
      at org.gradle.workers.internal.AbstractWorker.executeWrappedInBuildOperation(AbstractWorker.java:41)
      at org.gradle.workers.internal.NoIsolationWorkerFactory$1.execute(NoIsolationWorkerFactory.java:53)
      at org.gradle.workers.internal.DefaultWorkerExecutor.lambda$submitWork$2(DefaultWorkerExecutor.java:200)
      at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      at org.gradle.internal.work.DefaultConditionalExecutionQueue$ExecutionRunner.runExecution(DefaultConditionalExecutionQueue.java:215)
      at org.gradle.internal.work.DefaultConditionalExecutionQueue$ExecutionRunner.runBatch(DefaultConditionalExecutionQueue.java:164)
      at org.gradle.internal.work.DefaultConditionalExecutionQueue$ExecutionRunner.run(DefaultConditionalExecutionQueue.java:131)
      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
      at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:64)
      at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:48)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
      at org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:56)
      at java.lang.Thread.run(Thread.java:748)
  Caused by: com.android.tools.r8.CompilationFailedException: Compilation failed to complete
      at com.android.tools.r8.utils.W.a(:87)
      at com.android.tools.r8.D8.run(:11)
      at com.android.builder.dexing.D8DexArchiveMerger.mergeDexArchives(D8DexArchiveMerger.java:117)
      ... 33 more
  Caused by: com.android.tools.r8.utils.b: Error: null, Cannot fit requested classes in a single dex file (# methods: 66078 &gt; 65536)
      at Version.fakeStackEntry(Version_2.0.99.java:0)
      at com.android.tools.r8.utils.O0.a(:21)
      at com.android.tools.r8.dex.P.a(:56)
      at com.android.tools.r8.dex.P$h.a(:7)
      at com.android.tools.r8.dex.b.a(:15)
      at com.android.tools.r8.dex.b.b(:24)
      at com.android.tools.r8.D8.d(:92)
      at com.android.tools.r8.D8.b(:1)
      at com.android.tools.r8.utils.W.a(:30)
      ... 35 more
  
  Cannot fit requested classes in a single dex file (# methods: 66078 &gt; 65536)
  
  Caused by: com.android.tools.r8.CompilationFailedException: Compilation failed to complete
  
  Caused by: com.android.tools.r8.utils.b: Error: null, Cannot fit requested classes in a single dex file (# methods: 66078 &gt; 65536)
  
  
  &gt; Task :app:mergeDexDebug FAILED
  </code></pre>