FastDFS的Java客户端The method getConnection() is undefined for the type TrackerClient异常

Java连接fastDfs客户端报如下异常
The method getConnection() is undefined for the type TrackerClientFastDFS的Java客户端The method getConnection() is undefined for the type TrackerClient异常
原因:
fastDfs版本冲突问题;
解决:
第一种:改成1.27版本;
第二种:改成getTrackerServer方法
trackerServer = trackerClient.getTrackerServer();