Cannot enter text in password field after username is entered in the first field

I am using below code to type username and password text.

Username is working fine with below code:
WebElement parentElement = driver.findElement(By.name(“Amazon Sign In”));
List childElements = parentElement.findElements(By.className(“android.view.View”));
WebElement mainElement = childElements.get(4);
mainElement.findElement(By.className(“android.widget.EditText”)).sendKeys(“Email”);

But when i am using Password code, it is not working:
driver.findElement(By.xpath(“//android.widget.EditText[@text=‘•••••••••••••••’]/following-sibling::android.view.View/android.widget.EditText”)).sendKeys(“xyz”);

I also tried using:
driver.findElement(By.cssSelector(“input[content-desc=‘Amazon password’]”)).sendKeys(“xyz”);

OR

WebElement pwd=driver.findElement(By.id(“ap_password”));
pwd.click();
pwd.sendKeys(“xyz”);

Below is the Appium server log:

info: [debug] Responding to client with success: {“status”:0,“value”:true,“sessionId”:“b152d1f3-f1a1-4667-9a09-247b43e8f8a4”}
info: ← POST /wd/hub/session/b152d1f3-f1a1-4667-9a09-247b43e8f8a4/element/26/value 200 6135.051 ms - 76 {“status”:0,“value”:true,“sessionId”:“b152d1f3-f1a1-4667-9a09-247b43e8f8a4”}
info: → POST /wd/hub/session/b152d1f3-f1a1-4667-9a09-247b43e8f8a4/element {“using”:“id”,“value”:“ap_password”}
info: [debug] Waiting up to 0ms for condition
info: [debug] Pushing command to appium work queue: [“find”,{“strategy”:“id”,“selector”:“ap_password”,“context”:“”,“multiple”:false}]
info: [debug] [BOOTSTRAP] [debug] Got data from client: {“cmd”:“action”,“action”:“find”,“params”:{“strategy”:“id”,“selector”:“ap_password”,“context”:“”,“multiple”:false}}
info: [debug] [BOOTSTRAP] [debug] Got command of type ACTION
info: [debug] [BOOTSTRAP] [debug] Got command action: find
info: [debug] [BOOTSTRAP] [debug] Finding ap_password using ID with the contextId: multiple: false
info: [debug] [BOOTSTRAP] [debug] Using: UiSelector[INSTANCE=0, RESOURCE_ID=com.amazon.mShop.android.shopping:id/ap_password]
info: [debug] [BOOTSTRAP] [debug] Using: UiSelector[INSTANCE=0, RESOURCE_ID=android:id/ap_password]
info: [debug] [BOOTSTRAP] [debug] Using: UiSelector[DESCRIPTION=ap_password, INSTANCE=0]
info: [debug] [BOOTSTRAP] [debug] Failed to locate element. Clearing Accessibility cache and retrying.
info: [debug] [BOOTSTRAP] [debug] Finding ap_password using ID with the contextId: multiple: false
info: [debug] [BOOTSTRAP] [debug] Using: UiSelector[INSTANCE=0, RESOURCE_ID=com.amazon.mShop.android.shopping:id/ap_password]
info: [debug] [BOOTSTRAP] [debug] Using: UiSelector[INSTANCE=0, RESOURCE_ID=android:id/ap_password]
info: [debug] [BOOTSTRAP] [debug] Using: UiSelector[DESCRIPTION=ap_password, INSTANCE=0]
info: [debug] [BOOTSTRAP] [debug] Returning result: {“status”:7,“value”:“No element found”}
info: [debug] Condition unmet after 297ms. Timing out.
info: [debug] Responding to client with error: {“status”:7,“value”:{“message”:“An element could not be located on the page using the given search parameters.”,“origValue”:“No element found”},“sessionId”:“b152d1f3-f1a1-4667-9a09-247b43e8f8a4”}
info: ← POST /wd/hub/session/b152d1f3-f1a1-4667-9a09-247b43e8f8a4/element 500 306.128 ms - 195
info: → DELETE /wd/hub/session/b152d1f3-f1a1-4667-9a09-247b43e8f8a4 {}
info: Shutting down appium session

Can anyone help me on this as nothing of the above options are working