I\'m getting this warning in my project gradle file:
Warning:(16, 5) \'buildTypes\' cannot be applied to \'(groovy.lang.Closure< com.android.build.
I managed to solve my issue by simply doing this: Click "File" then select "Invalidate Caches/ Restart