Account not linking

I played Dragalia without a Nintendo account on my nvidia shield tablet and I want to link it so I can play it on my phone, but whenever I try to link an account to my shield it doesn’t work