Unable to switch to debug build variant in Android Studio

I had a similar problem where most of the Build menu items were greyed out.
greyed out

‘Sync project with Gradle files’ didn’t fix.

I noticed a ‘Build Variants’ toggle button on the bottom left of Android Studio (v 3.1.2) and with this was finally able to choose the variant I needed.

Choose variant from here

Maybe this will work for you too.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)