com.google.android.gms.version,Could not find com.google.android.gms:strict-version-matcher-plugin:1...

I'm pretty new to flutter,i cloned an working flutter application from Github which is a Text to speech app using transcription something.After cloning I followed these steps,

flutter pub get

flutter upgrade

After doing these steps,I thought of running the flutter by connecting my android device(I already used this host android device for many testing),but it throws error as

FAILURE: Build failed with an exception.

What went wrong:

A problem occurred configuring root project 'android'.

Could not resolve all artifacts for configuration ':classpath'.

Could not find com.google.android.gms:strict-version-matcher-plugin:1.1.0.

Searched in the following locations:

- https://jcenter.bintray.com/com/google/android/gms/strict-version-matcher-plugin/1.1.0/strict-version-matcher-plugin-1.1.0.pom

- https://jcenter.bintray.com/com/google/android/gms/strict-version-matcher-plugin/1.1.0/strict-version-matcher-plugin-1.1.0.jar

Required by:

project : > com.google.gms:google-services:4.2.0

Below code is my project level gradle file code,

buildscript {

repositories {

jcenter()

}

dependencies {

classpath 'com.google.gms:google-services:4.2.0'

}

}

allprojects {

repositories {

jcenter()

}

}

rootProject.buildDir = '../build'

subprojects {

project.buildDir = "${rootProject.buildDir}/${project.name}"

project.evaluationDependsOn(':app')

}

task clean(type: Delete) {

delete rootProject.buildDir

}

task wrapper(type: Wrapper) {

gradleVersion = '2.14.1'

}

You can request any other files for reference,Please help me,this is my starting stage of building an APP,a more way to go,Thanks in Advance!

[Edited] My pubspec.yaml file is ,

name: fluttr_protorecorder

description: A new flutter project.

version: 0.2.0

environment:

sdk: ">=2.7.0 <3.0.0"

dependencies:

flutter:

sdk: flutter

flutter:

uses-material-design: true

assets:

- assets/sytody.png

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值