Is CGLIB usable on Android?

android, cglib, java

Solution

CGLib will generate java byte code. Since Android runs Dalvik byte code, it won't work. You probably would be better off looking at Dexmaker if you want to generate code dynamically for Android.

Problem

Is it possible to use CGLIB in an Android application? I'm getting a VerifyError, and it seems from Googling that this could be because it was compiled on another JDK.

Original source