After following the instructions mentioned at: https://developer.android.com/studio/build/multidex.html#mdex-gradle
I am getting an error cannot find symbol
The reason you are having this "symbol not found" issue is because you haven't imported the required imports. Why not simply add the following imports
import android.support.multidex.MultiDex;
import android.content.Context;
You should know the different cases for using each Multidex option. Kindly refer to https://developer.android.com/studio/build/multidex#java for all information relating to MultiDexing