Getting a java.lang.NoClassDefFoundError: io.appium.java_client.AppiumDriver

I haven’t used Android Studio as a IDE. From above error it seems there was something wrong with the java_client. May other people can help.