Issue with scrolling in AndroidDriver

scrollTo and scrollToExact methods are not stable and due to this reason those have been deprecated and removed in java client 4. There is not an exact alternative for these methods, instead you should change your scrolling case to swiping.

appiumDriver.swipe(int countForSwipeDown, int startx, int starty, int endx, int endy, int duration)

If you insist to use the old way, there is a workaround explained here: Java-client 4.0.0 released