A Unity ID allows you to buy and/or subscribe to Unity products and services, shop in the Asset Store and participate
in the Unity community.
I solved this by unchecking the use custom gradle template option. This is in Project Settings > Player > Build > Custom Gradle Template. This is...
gdespaux2010's solution worked for me.