Error in plugin parameters

plugins
android

#1

Hi!
I’m invoking java code from a plugin, but I have a parameter type error

Error: Cannot convert boolean to Ljava/lang/Boolean

Is there a possibility to correct it without modifying the java code?


#2

Primitive value will auto cast, in your case you may try .yourMethod(new java.lang.Boolean(true));