Solution: error: cannot find symbol, "ListActivity"


Problem:
    [javac] Compiling 3 source files to C:\xxx\Workspace\MyApp\bin\classes
    [javac] C:\xxx\Workspace\MyApp\src\com\akp\MyApp\MainActivity.java:12: error: cannot find symbol
    [javac] public class MainActivity extends ListActivity{

Quick Solution: 

1. Open MainActivity.java and add the below import for the ListActivity

import android.app.ListActivity;

2. Compile and test app.