Add a test and consistency checks in method / field resolution. Always use the associated class loader of a dex cache. Test: test.py Bug: 199246839 (cherry picked from commit c07f48875c60d88205283c979898ce31df2a2026) Merged-In: Ib512126915cac4af229a5a206a8b4d9d73bdf02a Change-Id: I2ed67329def77d50c54d2b76b37a8dfbe4fca35c