Error compiling because "The number of method references in a .dex file cannot exceed 64K."

Hi @a_random_cat,

I am not really familiar with this topic but you can take a look at the documentation link provided in the above error message:

Android app (APK) files contain executable bytecode files in the form of Dalvik Executable (DEX) files, which contain the compiled code used to run your app. The Dalvik Executable specification limits the total number of methods that can be referenced within a single DEX file to 65,536—including Android framework methods, library methods, and methods in your own code. In the context of computer science, the term Kilo, K, denotes 1024 (or 2^10). Because 65,536 is equal to 64 X 1024, this limit is referred to as the ‘64K reference limit’.

Also searching for previous threads on the forum that might help you solve your issue:

Hope it helps! :wink: