Plugin with id 'com.google.gms:google-services' not found. Flutter The 2019 Stack Overflow Developer Survey Results Are In Unicorn Meta Zoo #1: Why another podcast? Announcing the arrival of Valued Associate #679: Cesar Manara The Ask Question Wizard is Live! Data science time! April 2019 and salary with experienceHow to check if a service is running on Android?“Debug certificate expired” error in Eclipse Android pluginsGradle: classpath dependency not resolved from nested projectHow to display Map on emulatorKotlin fails to compile a libraryFLutter - Error trying to run the applicationAndroid Studio 3.2.1 - New project fails to runCould not find class 'dalvik.system…'getting cloud_firestore: 0.9.0 dependency breaks flutter appNo acceptable module found TextRecognizer

How many cones with angle theta can I pack into the unit sphere?

Does Parliament need to approve the new Brexit delay to 31 October 2019?

Match Roman Numerals

Why not take a picture of a closer black hole?

Variable with quotation marks "$()"

Student Loan from years ago pops up and is taking my salary

Using dividends to reduce short term capital gains?

Make it rain characters

Is there a way to generate uniformly distributed points on a sphere from a fixed amount of random real numbers per point?

How did passengers keep warm on sail ships?

The following signatures were invalid: EXPKEYSIG 1397BC53640DB551

Is this wall load bearing? Blueprints and photos attached

Single author papers against my advisor's will?

What can I do if neighbor is blocking my solar panels intentionally?

"... to apply for a visa" or "... and applied for a visa"?

Was credit for the black hole image misappropriated?

What do I do when my TA workload is more than expected?

Define a list range inside a list

How to politely respond to generic emails requesting a PhD/job in my lab? Without wasting too much time

Did the UK government pay "millions and millions of dollars" to try to snag Julian Assange?

Huge performance difference of the command find with and without using %M option to show permissions

Fixing different display colors within string

Can I visit the Trinity College (Cambridge) library and see some of their rare books

Are spiders unable to hurt humans, especially very small spiders?



Plugin with id 'com.google.gms:google-services' not found. Flutter



The 2019 Stack Overflow Developer Survey Results Are In
Unicorn Meta Zoo #1: Why another podcast?
Announcing the arrival of Valued Associate #679: Cesar Manara
The Ask Question Wizard is Live!
Data science time! April 2019 and salary with experienceHow to check if a service is running on Android?“Debug certificate expired” error in Eclipse Android pluginsGradle: classpath dependency not resolved from nested projectHow to display Map on emulatorKotlin fails to compile a libraryFLutter - Error trying to run the applicationAndroid Studio 3.2.1 - New project fails to runCould not find class 'dalvik.system…'getting cloud_firestore: 0.9.0 dependency breaks flutter appNo acceptable module found TextRecognizer



.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;








1















I am new to flutter framework. I am trying to install cloud firestore in flutter but got the problem. Below is my code and gradle files:
Android/build.gradlew:



buildscript 
// ext.kotlin_version = '1.2.31'
repositories
google()
jcenter()
maven
url "https://maven.google.com"



dependencies
classpath 'com.android.tools.build:gradle:3.2.1'
classpath 'com.google.gms:google-services:3.2.0'



allprojects
repositories
google()
jcenter()
maven
url "https://maven.google.com"




rootProject.buildDir = '../build'
subprojects
project.buildDir = "$rootProject.buildDir/$project.name"

subprojects
project.evaluationDependsOn(':app')


task clean(type: Delete)
delete rootProject.buildDir



App/build.gradle is:



def localProperties = new Properties()
def localPropertiesFile = rootProject.file('local.properties')
if (localPropertiesFile.exists())
localPropertiesFile.withReader('UTF-8') reader ->
localProperties.load(reader)



def flutterRoot = localProperties.getProperty('flutter.sdk')
if (flutterRoot == null)
throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.")


def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
if (flutterVersionCode == null)
flutterVersionCode = '1'


def flutterVersionName = localProperties.getProperty('flutter.versionName')
if (flutterVersionName == null)
flutterVersionName = '1.0'


apply plugin: 'com.android.application'
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"

android
compileSdkVersion 28

lintOptions
disable 'InvalidPackage'


defaultConfig
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
applicationId "com.example.barcode_app"
minSdkVersion 16
targetSdkVersion 28
versionCode flutterVersionCode.toInteger()
versionName flutterVersionName
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"


buildTypes
release
// TODO: Add your own signing config for the release build.
// Signing with the debug keys for now, so `flutter run --release` works.
signingConfig signingConfigs.debug




flutter
source '../..'


dependencies
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'

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


After running flutter run -v or build it in android i got the error:
'ERROR: Plugin with id 'com.google.gms:google-services' not found.'
enter image description here



I tried to almost all the solution available on stackoverflow and github but the problem is still there.










share|improve this question






















  • go to your Android Studio SDK manager and in SDK tools check if Google Play Services and Google Repository are installed.

    – Ryosuke
    Mar 22 at 5:44











  • Hi, welcome to StackOverflow, it would be really useful if you could cite the other solutions you have already tried or explain them. Then you will not receive repeated answers and possible answerers will know what to avoid.

    – xg.plt.py
    Mar 22 at 5:45











  • @Ryosuke yes i have installed these two.

    – Mubashir Ali
    Mar 22 at 5:58

















1















I am new to flutter framework. I am trying to install cloud firestore in flutter but got the problem. Below is my code and gradle files:
Android/build.gradlew:



buildscript 
// ext.kotlin_version = '1.2.31'
repositories
google()
jcenter()
maven
url "https://maven.google.com"



dependencies
classpath 'com.android.tools.build:gradle:3.2.1'
classpath 'com.google.gms:google-services:3.2.0'



allprojects
repositories
google()
jcenter()
maven
url "https://maven.google.com"




rootProject.buildDir = '../build'
subprojects
project.buildDir = "$rootProject.buildDir/$project.name"

subprojects
project.evaluationDependsOn(':app')


task clean(type: Delete)
delete rootProject.buildDir



App/build.gradle is:



def localProperties = new Properties()
def localPropertiesFile = rootProject.file('local.properties')
if (localPropertiesFile.exists())
localPropertiesFile.withReader('UTF-8') reader ->
localProperties.load(reader)



def flutterRoot = localProperties.getProperty('flutter.sdk')
if (flutterRoot == null)
throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.")


def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
if (flutterVersionCode == null)
flutterVersionCode = '1'


def flutterVersionName = localProperties.getProperty('flutter.versionName')
if (flutterVersionName == null)
flutterVersionName = '1.0'


apply plugin: 'com.android.application'
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"

android
compileSdkVersion 28

lintOptions
disable 'InvalidPackage'


defaultConfig
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
applicationId "com.example.barcode_app"
minSdkVersion 16
targetSdkVersion 28
versionCode flutterVersionCode.toInteger()
versionName flutterVersionName
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"


buildTypes
release
// TODO: Add your own signing config for the release build.
// Signing with the debug keys for now, so `flutter run --release` works.
signingConfig signingConfigs.debug




flutter
source '../..'


dependencies
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'

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


After running flutter run -v or build it in android i got the error:
'ERROR: Plugin with id 'com.google.gms:google-services' not found.'
enter image description here



I tried to almost all the solution available on stackoverflow and github but the problem is still there.










share|improve this question






















  • go to your Android Studio SDK manager and in SDK tools check if Google Play Services and Google Repository are installed.

    – Ryosuke
    Mar 22 at 5:44











  • Hi, welcome to StackOverflow, it would be really useful if you could cite the other solutions you have already tried or explain them. Then you will not receive repeated answers and possible answerers will know what to avoid.

    – xg.plt.py
    Mar 22 at 5:45











  • @Ryosuke yes i have installed these two.

    – Mubashir Ali
    Mar 22 at 5:58













1












1








1








I am new to flutter framework. I am trying to install cloud firestore in flutter but got the problem. Below is my code and gradle files:
Android/build.gradlew:



buildscript 
// ext.kotlin_version = '1.2.31'
repositories
google()
jcenter()
maven
url "https://maven.google.com"



dependencies
classpath 'com.android.tools.build:gradle:3.2.1'
classpath 'com.google.gms:google-services:3.2.0'



allprojects
repositories
google()
jcenter()
maven
url "https://maven.google.com"




rootProject.buildDir = '../build'
subprojects
project.buildDir = "$rootProject.buildDir/$project.name"

subprojects
project.evaluationDependsOn(':app')


task clean(type: Delete)
delete rootProject.buildDir



App/build.gradle is:



def localProperties = new Properties()
def localPropertiesFile = rootProject.file('local.properties')
if (localPropertiesFile.exists())
localPropertiesFile.withReader('UTF-8') reader ->
localProperties.load(reader)



def flutterRoot = localProperties.getProperty('flutter.sdk')
if (flutterRoot == null)
throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.")


def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
if (flutterVersionCode == null)
flutterVersionCode = '1'


def flutterVersionName = localProperties.getProperty('flutter.versionName')
if (flutterVersionName == null)
flutterVersionName = '1.0'


apply plugin: 'com.android.application'
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"

android
compileSdkVersion 28

lintOptions
disable 'InvalidPackage'


defaultConfig
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
applicationId "com.example.barcode_app"
minSdkVersion 16
targetSdkVersion 28
versionCode flutterVersionCode.toInteger()
versionName flutterVersionName
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"


buildTypes
release
// TODO: Add your own signing config for the release build.
// Signing with the debug keys for now, so `flutter run --release` works.
signingConfig signingConfigs.debug




flutter
source '../..'


dependencies
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'

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


After running flutter run -v or build it in android i got the error:
'ERROR: Plugin with id 'com.google.gms:google-services' not found.'
enter image description here



I tried to almost all the solution available on stackoverflow and github but the problem is still there.










share|improve this question














I am new to flutter framework. I am trying to install cloud firestore in flutter but got the problem. Below is my code and gradle files:
Android/build.gradlew:



buildscript 
// ext.kotlin_version = '1.2.31'
repositories
google()
jcenter()
maven
url "https://maven.google.com"



dependencies
classpath 'com.android.tools.build:gradle:3.2.1'
classpath 'com.google.gms:google-services:3.2.0'



allprojects
repositories
google()
jcenter()
maven
url "https://maven.google.com"




rootProject.buildDir = '../build'
subprojects
project.buildDir = "$rootProject.buildDir/$project.name"

subprojects
project.evaluationDependsOn(':app')


task clean(type: Delete)
delete rootProject.buildDir



App/build.gradle is:



def localProperties = new Properties()
def localPropertiesFile = rootProject.file('local.properties')
if (localPropertiesFile.exists())
localPropertiesFile.withReader('UTF-8') reader ->
localProperties.load(reader)



def flutterRoot = localProperties.getProperty('flutter.sdk')
if (flutterRoot == null)
throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.")


def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
if (flutterVersionCode == null)
flutterVersionCode = '1'


def flutterVersionName = localProperties.getProperty('flutter.versionName')
if (flutterVersionName == null)
flutterVersionName = '1.0'


apply plugin: 'com.android.application'
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"

android
compileSdkVersion 28

lintOptions
disable 'InvalidPackage'


defaultConfig
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
applicationId "com.example.barcode_app"
minSdkVersion 16
targetSdkVersion 28
versionCode flutterVersionCode.toInteger()
versionName flutterVersionName
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"


buildTypes
release
// TODO: Add your own signing config for the release build.
// Signing with the debug keys for now, so `flutter run --release` works.
signingConfig signingConfigs.debug




flutter
source '../..'


dependencies
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'

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


After running flutter run -v or build it in android i got the error:
'ERROR: Plugin with id 'com.google.gms:google-services' not found.'
enter image description here



I tried to almost all the solution available on stackoverflow and github but the problem is still there.







android flutter flutter-dependencies






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Mar 22 at 5:37









Mubashir AliMubashir Ali

82




82












  • go to your Android Studio SDK manager and in SDK tools check if Google Play Services and Google Repository are installed.

    – Ryosuke
    Mar 22 at 5:44











  • Hi, welcome to StackOverflow, it would be really useful if you could cite the other solutions you have already tried or explain them. Then you will not receive repeated answers and possible answerers will know what to avoid.

    – xg.plt.py
    Mar 22 at 5:45











  • @Ryosuke yes i have installed these two.

    – Mubashir Ali
    Mar 22 at 5:58

















  • go to your Android Studio SDK manager and in SDK tools check if Google Play Services and Google Repository are installed.

    – Ryosuke
    Mar 22 at 5:44











  • Hi, welcome to StackOverflow, it would be really useful if you could cite the other solutions you have already tried or explain them. Then you will not receive repeated answers and possible answerers will know what to avoid.

    – xg.plt.py
    Mar 22 at 5:45











  • @Ryosuke yes i have installed these two.

    – Mubashir Ali
    Mar 22 at 5:58
















go to your Android Studio SDK manager and in SDK tools check if Google Play Services and Google Repository are installed.

– Ryosuke
Mar 22 at 5:44





go to your Android Studio SDK manager and in SDK tools check if Google Play Services and Google Repository are installed.

– Ryosuke
Mar 22 at 5:44













Hi, welcome to StackOverflow, it would be really useful if you could cite the other solutions you have already tried or explain them. Then you will not receive repeated answers and possible answerers will know what to avoid.

– xg.plt.py
Mar 22 at 5:45





Hi, welcome to StackOverflow, it would be really useful if you could cite the other solutions you have already tried or explain them. Then you will not receive repeated answers and possible answerers will know what to avoid.

– xg.plt.py
Mar 22 at 5:45













@Ryosuke yes i have installed these two.

– Mubashir Ali
Mar 22 at 5:58





@Ryosuke yes i have installed these two.

– Mubashir Ali
Mar 22 at 5:58












1 Answer
1






active

oldest

votes


















3














At the bottom of your app/build.gradle file you've got:



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


This should actually be:



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


Notice the period between gms and google-services, instead of the colon.



EDIT: You're probably having this problem because Google's own docs (last edited 20 March) are incorrect. I've sent them feedback to have this corrected.
Picture of typo in google doc
archived here http://archive.is/4Ujuc






share|improve this answer

























    Your Answer






    StackExchange.ifUsing("editor", function ()
    StackExchange.using("externalEditor", function ()
    StackExchange.using("snippets", function ()
    StackExchange.snippets.init();
    );
    );
    , "code-snippets");

    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "1"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader:
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    ,
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );













    draft saved

    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55293485%2fplugin-with-id-com-google-gmsgoogle-services-not-found-flutter%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    3














    At the bottom of your app/build.gradle file you've got:



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


    This should actually be:



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


    Notice the period between gms and google-services, instead of the colon.



    EDIT: You're probably having this problem because Google's own docs (last edited 20 March) are incorrect. I've sent them feedback to have this corrected.
    Picture of typo in google doc
    archived here http://archive.is/4Ujuc






    share|improve this answer





























      3














      At the bottom of your app/build.gradle file you've got:



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


      This should actually be:



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


      Notice the period between gms and google-services, instead of the colon.



      EDIT: You're probably having this problem because Google's own docs (last edited 20 March) are incorrect. I've sent them feedback to have this corrected.
      Picture of typo in google doc
      archived here http://archive.is/4Ujuc






      share|improve this answer



























        3












        3








        3







        At the bottom of your app/build.gradle file you've got:



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


        This should actually be:



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


        Notice the period between gms and google-services, instead of the colon.



        EDIT: You're probably having this problem because Google's own docs (last edited 20 March) are incorrect. I've sent them feedback to have this corrected.
        Picture of typo in google doc
        archived here http://archive.is/4Ujuc






        share|improve this answer















        At the bottom of your app/build.gradle file you've got:



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


        This should actually be:



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


        Notice the period between gms and google-services, instead of the colon.



        EDIT: You're probably having this problem because Google's own docs (last edited 20 March) are incorrect. I've sent them feedback to have this corrected.
        Picture of typo in google doc
        archived here http://archive.is/4Ujuc







        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Mar 22 at 9:03









        kkarakk

        634517




        634517










        answered Mar 22 at 5:52









        jmorrisjmorris

        11825




        11825





























            draft saved

            draft discarded
















































            Thanks for contributing an answer to Stack Overflow!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid


            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.

            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55293485%2fplugin-with-id-com-google-gmsgoogle-services-not-found-flutter%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

            SQL error code 1064 with creating Laravel foreign keysForeign key constraints: When to use ON UPDATE and ON DELETEDropping column with foreign key Laravel error: General error: 1025 Error on renameLaravel SQL Can't create tableLaravel Migration foreign key errorLaravel php artisan migrate:refresh giving a syntax errorSQLSTATE[42S01]: Base table or view already exists or Base table or view already exists: 1050 Tableerror in migrating laravel file to xampp serverSyntax error or access violation: 1064:syntax to use near 'unsigned not null, modelName varchar(191) not null, title varchar(191) not nLaravel cannot create new table field in mysqlLaravel 5.7:Last migration creates table but is not registered in the migration table

            은진 송씨 목차 역사 본관 분파 인물 조선 왕실과의 인척 관계 집성촌 항렬자 인구 같이 보기 각주 둘러보기 메뉴은진 송씨세종실록 149권, 지리지 충청도 공주목 은진현