Install magisk delta and lsposed. Before this you need to check emulator settings - enable root and writable disk. And more - after install magisk, it will show you warning. Don't disable root in emulator settings!!! Go to system/bin/su and system/xbin/su. Delete both files, restart emulator. You should be ok