The device might have stale dexed jars that don't match the current version (dexopt error).

Installation did not succeed.
The application could not be installed: INSTALL_FAILED_DEXOPT
The device might have stale dexed jars that don't match the current version (dexopt error).

在 gradle.properties 里添加

android.enableD8=false
android.enableD8.desugaring=false

你可能感兴趣的:(The device might have stale dexed jars that don't match the current version (dexopt error).)