I imported a code from github and tried to run it on my device, and encountered this error:
Error:Execution failed for task ':app:transformClassesWithDexForDebug'. 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
When I googled it, I found out that it has something to do with the number of methods where the code is getting too big, but it's not the fact that it only contains one Java class with a couple of methods. What else could be the problem?
Any suggestions will be appreciated.