fix dependency not compiling issue with gradle