when I compile my Android package: it prints
Problem with recording: Too many methods: 65544; max - 65536. By packaging: ... ...
This is because I am defining too many built-in methods in my class. How can I solve this problem?
This clearly indicates that your class is too complex and needs to be reorganized into a few smaller units.
One of Googleβs solutions uses multiple DEX files.
http://android-developers.blogspot.com/2011/07/custom-class-loading-in-dalvik.html
From my comment in another Konstatin solution, there are times when you will run dedicated 64K methods.
A profile to remove some third-party library method calls that you are not using is a workaround.
Source: https://habr.com/ru/post/1440731/More articles:binding a local service to an action or using a broadcast receiver, which is more efficient? - androidIs it possible to "manually" create image data to use OpenGL texture? - openglHow to break a huge solution into smaller pieces - .netandroid: swipe left or right to view slides - androidHow to find equal columns in R? - rAndroid: swipe the screen from left to right and right to left - androidJava for loop with ArrayList - javahow to import android.os.bundle format into regular java projects? - javaUsing JSON instead of normalized data, is this approach correct? - jsonHow to get a record counter from an ADO request? - sqlAll Articles