There are many solution for this error.
Some said increasing the heap memory of android studio will solve this.
Some, asking to use multi dex library. Multidex library setup
In my case, this issue occurs only at the time of adding recycler view as dependency in my project. Because my existing code project added to recycler-view might led to have over 65k line of code of my entire project. This is clear to me.
Now the only question I have got is, I don't use gradle build system in my project. Does any one have the complete steps to use Multidex library for Android studio build? (Not gradle build)