I am getting an error while executing a click event

Jul 18, 2018 11:24:28 AM org.openqa.selenium.remote.ProtocolHandshake createSession
INFO: Detected dialect: OSS

setup for Appium:

Windows 10

Appium: [Appium] Welcome to Appium v1.8.1

jdk: java version “1.8.0_171”

selenium-java-3.12.0

java-client-5.0.4

commons-lang3-3.7 added from maven link:

Issue: Not tapped on the link.

Code:
import java.net.MalformedURLException;
import java.util.concurrent.TimeUnit;

import io.appium.java_client.android.AndroidDriver;
import io.appium.java_client.android.AndroidElement;

public class base1_new extends connection_new {

public static void main(String[] args) throws MalformedURLException {
	// TODO Auto-generated method stub
	AndroidDriver<AndroidElement> driver = capabilities();
	driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);
	
	driver.findElementByXPath("//android.widget.TextView[@text='Preference']").click();
}

}

what is the visibility and enabled attribute value?
and also logs required.