error message : java.lang.IllegalAccessError:Class ref inpre-verified Class resolved to unexpected Implementatio
Scenario : When loading apk, jar dynamically
Error Analysis : This is usually a reference repetition (that is, your current apk and the apk you want to load, there is a duplicate reference between the jar), like in my project encountered the problem is: the loaded apk selected minimum version under 4.0, need to reference Android.support.v7.app.ActionBarActivity, this package, but the package is also used in the new project, so run to Context.getclassloader (). LoadClass will report the above error,
Workaround: The minimum version of the new project should be more than 4.0, OK, because the minimum version after 4.0, do not need to reference Android.support.v7.app.ActionBarActivity This package, minimum version before 4.0, need to reference android.support.v7.app.ActionBarActivity this package
Java.lang.IllegalAccessError:Class ref in Pre-verified Class resolved to unexpected Implementatio