driver.findElements(By.className("")); didn't execute

List variable = driver.findElements(By.className(“android.widget.RelativeLayout”));
variable.get(0).click();

The said line didn’t execute even though there is a “import java.util.List;” library in the source code. It also didn’t indicate any kind of errors. The execution of code just suddenly stops. How can I solve this problem?