[android]Gradle 应用插件︰ com.google.gms.google 服务
来源:互联网 发布:网络扁平化的优点 编辑:程序博客网 时间:2024/05/17 20:14
当我试图应用插件: ' 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 0
- [android]Gradle 应用插件︰ com.google.gms.google 服务
- android google GMS服务包安装
- Attempt to invoke virtual method 'com.google.android.gms.maps.GoogleMap com.google.android.gms.maps.
- Androidstudio gradle失败了 更新最新的compile 如com.google.android.gms:play-services-maps:11.4.0
- 国行Android手机使用google全套GMS服务小结
- google GMS
- android googlemap v2 Unable to instantiate fragment com.google.android.gms.maps.MapFragment: make s
- 运行Android studio报错com.google.android.gms:play-services-appindexing:8.1.0
- Android集成Google Mobile Service(GMS)
- Android 之Google认证GMS详细解剖
- Error:(75, 13) Failed to resolve: com.google.android.gms:play-services:11.2.0
- A SQLiteConnection object for database '/data/user/0/com.google.android.gms/
- java.lang.SecurityException: Unknown calling package name, com.google.android.gms.common.internal.zz
- A SQLiteConnection object for database '/data/user/0/com.google.android.gms/
- google gms安装
- Google GMS 下载
- Google GMS-Testing
- Android跳转到应用商店的APP详情页面,以及 Google GMS 各个apk的包
- 线程学习总结-----/*自己编写*/
- Jquery 表单校验注册+购物车
- mongodb 访问权限控制
- 账号已被停用,请咨询系统管理员
- 剑指offer 40. 数组中只出现一次的数字
- [android]Gradle 应用插件︰ com.google.gms.google 服务
- [C++]bitset类用法
- 数据库链接错误,有可能不是用户名密码的问题
- 最全的Java笔试题库之选择题篇-总共234道【181~234】
- 内心空明
- O(n)回文子串(Manacher)算法
- Oracle-ORA-01722:invalid number-解决GAT项目中车辆维修Bug
- Mybatis介绍之参数传递
- Shiro+SpringMVC+MyBatis整合