Generate Signed APK Errors
<p>When I run an application in the emulator it works, but when I want to generate a signed APK I get the following error message:</p>

<blockquote>
  <p>[Error:Execution failed for task
  ':app:transformClassesWithDexForRelease'.
  > com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException:
  java.util.concurrent.ExecutionException:
  com.android.dex.DexIndexOverflowException: method ID not in [0,
  0xffff]: 65536]</p>
</blockquote>

<p>What does this error message mean and is there a way to solve this issue?</p>

<p><a href="https://i.stack.imgur.com/sKDYE.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/sKDYE.png" alt="Screenshot of error"></a></p>