How to download gapps
The error occoured because the gapps version you installed didnot match the version of os installed. You can find the minimal gapps edition here.Since you are running cm12 you should download download the one meant for android 5.0.x