Not able to use FIND ELEMENT by TEXT, AndroidUIAUTOMATOR

I am using java client v-5.0.4 and appium v-1.7.1, i am trying to find an element by TEXT and andoriduiautomator but both functions are not working, facing lots of problems.
So need to know how to use both functions in the latest version and if there is any other alternative to find the element.
Also as Swipe and scroll to function support also depreciated so provide the alternative for both the functions

For Swipe and scroll, use multi touch actions.