Android Error: cannot find symbol class View

Reading time: less than 1 minute

Android Error: cannot find symbol class View

Import file given below in MainActivity.java file:

import android.view.View;