Show line number in Android Studio

Step 1: File > Settings



Step 2: Editor > General > Appearance > click show line number (Check Box)