Dynamic Loading Dex IncompatibleClassChangeError: Structural change of

46 Views Asked by At

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.

0

There are 0 best solutions below