You are trying to initialize a field in the class body. This is not allowed in a separate statement. Either move it with the declaration or move it into an initializer block
This has nothing to do with the interface. The problem is that you are trying to put statements outside of a method or (static) initializer.
Remember, all a class can contain are declarations (fields, constructors, methods, inner classes / interfaces / enums) and (static) initializer blocks. Any regular code does not belong there.
You can quite easily fix your code by combining the declaration and statement into one: