Cannot open the Service Core (GmsCore) file

Well then I guess your sources are not good.
It’s best to download F-Droid and install microg from there.

Here is a guide:

The correct procedure to install microg is written down in Level 5 > Step 5.