Errors, warnings, and bugs
The most common getting started errors are the syntax errors. They most frequently occur when we mistype a Java keyword or forget to leave a space after a keyword.
The following error occurs if you forget to leave a semicolon at the end of a line of code:
Important note
There are occasions when we don't need semicolons. We will see these as we proceed.
Look at the following screenshot, which shows the error we get when we type in a word that the compiler doesn't recognize:
Also, notice that Android Studio is giving us a warning that we have some unused variables – warnings such as Field 'horizontalTouched' is never used. You can see these warnings if you hover the mouse pointer over the little yellow lines on the right of the editor window...