Android trouble - Gradle sync failed

I am following this guide to build OF projects for Android:

I think I’ve done everything correctly but I keep getting the following error:
Gradle sync failed: Plugin with id '' not found.

Has anyone ran into this before?

Edit: Uninstalled Android Studio and reinstalled and seems to work now.