[android]Gradle 应用插件︰ com.google.gms.google 服务

当我试图应用插件: ' com.google.gms.google-服务底部的我 build gradle 或在我的应用程序内的其他任何地方 build gradle 我得到一个错误说它找不到它。

Error:(70, 0) Plugin with id 'com.google.gms.google-services' not found.

这里是我 gradle 代码,所以你的家伙能帮我找出它的位置。

apply plugin: 'com.android.application'


android
{
    compileSdkVersion
24
    buildToolsVersion
'24.0.3'

    defaultConfig
{
        applicationId
"com.technologx.blaze.player"
        minSdkVersion
16
        targetSdkVersion
24
        versionCode
101
        versionName
"1.0 beta 1"
       
//renderscript support mode is not supported for 21+ with gradle version 2.0
        renderscriptTargetApi
20
        renderscriptSupportModeEnabled
true
   
}
    buildTypes
{
        release
{
            minifyEnabled
false
            proguardFiles getDefaultProguardFile
('proguard-android.txt'), 'proguard-rules.pro'
       
}
        debug
{
            ext
.enableCrashlytics = false
            minifyEnabled
false
            proguardFiles getDefaultProguardFile
('proguard-android.txt'), 'proguard-rules.pro'
       
}
   
}
    lintOptions
{
        disable
'MissingTranslation'
        disable
'ExtraTranslation'
   
}

}

repositories
{
    jcenter
()
}

dependencies
{
    compile fileTree
(dir: 'libs', include: ['*.jar'])
    compile
'com.android.support:appcompat-v7:24.2.1'
    compile
'com.android.support:recyclerview-v7:24.2.1'
    compile
'com.android.support:cardview-v7:24.2.1'
    compile
'com.android.support:palette-v7:24.2.1'
    compile
'com.android.support:design:24.2.1'
    compile
'com.android.support:percent:24.2.1'

    compile
'com.google.android.gms:play-services-ads:8.4.0'
    compile
'com.google.firebase:firebase-ads:10.0.1'

    compile
'com.nostra13.universalimageloader:universal-image-loader:1.9.4'
    compile
'net.steamcrafted:materialiconlib:1.0.3'
    compile
'com.squareup.retrofit:retrofit:1.9.0'
    compile
'com.squareup.okhttp:okhttp-urlconnection:2.3.0'
    compile
'com.squareup.okhttp:okhttp:2.3.0'
    compile
'com.google.code.gson:gson:2.3'
    compile
'de.Maxr1998:track-selector-lib:1.1'

    compile
'com.afollestad.material-dialogs:core:0.9.0.2'
    compile
'com.afollestad.material-dialogs:commons:0.9.0.2'

    compile
'com.anjlab.android.iab.v3:library:1.0.+'

    compile
('com.github.naman14:app-theme-engine:0.5.2@aar') {
        transitive
= true
   
}
}

    apply plugin
: 'com.google.gms.google-services'
解决方法 1:

我想你也需要这项目 gradle 文件中︰

buildscript {
   
// ...
    dependencies
{
       
// ...
        classpath
'com.google.gms:google-services:3.0.0'
   
}
}
  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

安果移不动

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值