Solution: error: cannot find symbol "ArrayList"

Problem

    [javac] Compiling 3 source files to C:\xxxx\Workspace\MyApp\bin\classes
    [javac] C:\xxxx\Workspace\MyApp\src\com\akp\MyApp\MainActivity.java:18: error: cannot find symbol
    [javac]     ArrayList<String> listItems=new ArrayList<String>();
    [javac]     ^
    [javac]   symbol:   class ArrayList
    [javac]   location: class MainActivity

Solution:
1. Open the MainActivity.java file and add the below line to the imports section

import java.util.ArrayList;

2. Compile and test your app.