Skip to content Skip to sidebar Skip to footer

Error On Build.gradle In Visual Studio Code(Flutter)

I am currently trying to build an app for the Google Play Store and need to make a signed and released APK. I tried updating both build.gradle files, but I get this error: FAILURE:

Solution 1:

Your missing the:

 apply plugin: 'com.android.application'

just above line 30 of your android/app build.gradle file. It does not understand android{} without this. Move:

 apply plugin: 'com.google.gms.google-services' 

up too, too keep it tidy and best to read it early, later stuff may depend on it.


Post a Comment for "Error On Build.gradle In Visual Studio Code(Flutter)"