I followed this link:
https://forum.xda-developers.com/android/general/gapps-guidetutorial-microg-t3771483/amp/
But I installed nanodroid the thread and you said but didn't work. Gmail crashes. In micro g settings it says to add google account even though I added one. Help please...