Solution for: error: local variable myList is accessed from within inner class; needs to be declared final


Problem:

    [javac] Compiling 3 source files to C:\XXX\Workspace\MyApp\bin\classes
    [javac] C:\XXX\Workspace\MyApp\src\com\akp\MyAPp\MainActivity.java:74: error: local variable myList is accessed from within inner class; needs to be declared final
    [javac] myList.add(strEditText);
    [javac] ^
    [javac] 1 error

Solution: 

1. Make sure you are linking your List to ArrayList correctly.