문제

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.

도움이 되었습니까?

해결책

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.

다른 팁

This is a late answer but have a look at Byte Buddy which is a library that I wrote and which is similar to cglib which in its newest version supports Android.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top