You are using `findElement` method which will return single element but you are try to save it in the list.

Your code should be

     WebElement a=driver.findElement(By.className("android.widget.EditText"));