The official YouTube app relies heavily on (GMS). This is the proprietary background service suite that Google requires on almost all Android devices. When you log into the YouTube app, your credentials are verified through GMS.
You need the final Vanced APK ( vanced_youtube_17.03.38 is the last stable build). microg youtube vanced
For the average user, Vanced simply "worked." You downloaded it, installed it, and logged into your Google account just like the official app. However, beneath the surface, logging into a modified app without using the official Google Play Services presented a massive security and technical hurdle. This is where MicroG entered the picture. The official YouTube app relies heavily on (GMS)