I have a question about dynamic loading of dex. When debugging is running, it can run successfully, but when I officially package it, there will be a
java.lang.IncompatibleClassChangeError: Structural change of androidx.appcompat.widget. AppCompatImageView is hazardous (/data/user/0/package/appddex/dynamic. dex at compile time,/data/app/package/at/x86/base. odex at runtime): Direct method count off: 3 vs. 2.
How do I need to solve this problem? Thanks
When dynamically loading dex, this issue will occur before versions earlier than Android 10, and will not occur above that version.