I am using JavaAssist in Android to make dynamic classes for a purpose. ClassPool get()
method throw NotFoundException
when trying to get java.lang.String
.
It works fine in JUnit Test. But if I run same in the device, it throws exception.
Here is the code snippet I'm trying.
ClassPool classPool = ClassPool.getDefault();
CtClass ctClass=classPool.get("java.lang.String");
The 2nd line throws an exception.
Please help.