Argument cannot have type 'void'
The compiler detected a method argument defined as type void. The void type can only be used for method return values to declare a method has no return value. Change the data type of the argument and compile again.
The following example illustrates this error:
public class Simple {
public void method1(void i) {
// error: type void can only
// be used as a return value
}
}