Category : javassist

I’m having trouble resolving javassist related errors. Error Contents Mamification failed: createFromFontInfo (Landroid/content/Context;Landroid/os/CancellationSignal;[Landroidx/core/provider/FontsContractCompat$FontInfo;I)Landroid/graphics/Typeface; in androidx.core.graphics.TypefaceCompatApi29Impl: failed to resolve types javassist.CannotCompileException: createFromFontInfo (Landroid/content/Context;Landroid/os/CancellationSignal;[Landroidx/core/provider/FontsContractCompat$FontInfo;I)Landroid/graphics/Typeface; in androidx.core.graphics.TypefaceCompatApi29Impl: failed to resolve types at javassist.expr.ExprEditor.doit(ExprEditor.java:122) at javassist.CtClassType.instrument(CtClassType.java:1541) at com.microsoft.intune.mam.BuildTimeMamifier.mamifyClass(BuildTimeMamifier.java:451) at com.microsoft.intune.mam.BuildTimeMamifier.mamifyClasses(BuildTimeMamifier.java:197) at com.microsoft.intune.mam.BuildTimeMamifier.mamify(BuildTimeMamifier.java:109) at com.microsoft.intune.mam.MamifyTransformBase.transform(MamifyTransformBase.java:202) at com.android.build.gradle.internal.pipeline.TransformTask$2.call(TransformTask.java:284) at com.android.build.gradle.internal.pipeline.TransformTask$2.call(TransformTask.java:247) at com.android.builder.profile.ThreadRecorder.record(ThreadRecorder.java:106) at com.android.build.gradle.internal.pipeline.TransformTask.transform(TransformTask.java:242) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ..

Read more

I’m working on a plugin for Gradle in android project. I use Transformation Api for manipulate with byte code across compilation and for this purpose I choosen Javassist. My question related to this library. Before manipulate byte code I need determine which type has this class. For example, if some ctClass has method setOnClickListener(), I ..

Read more