错误(28,13):无法解析:com.google.android.gms:play-services:10.0.1 [英] Error(28, 13):Failed to resolve: com.google.android.gms:play-services:10.0.1
本文介绍了错误(28,13):无法解析:com.google.android.gms:play-services:10.0.1的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想使用Google地图。
我的问题:
$ b android-Studio 2.2,android-SDK 4.4,gradle:2.2.2,my OS:win-10
apply plugin:'com.android.application'
android {
compileSdkVersion'Google Inc.:Google APIs:21'
buildToolsVersion23.0.3
defaultConfig {
applicationIdir.amir.map
minSdkVersion 19
targetSdkVersion 23
versionCode 1
versionName 1.0
testInstrumentationRunnerandroid.support.test.runner.AndroidJUnitRunner
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile(' 'proguard-android.txt'),'proguard-rules.pro'
}
}
}
依赖{
编译fileTree(包括:[ '* .jar'],dir:'libs')
androidTestCompile('c om.android.support.test.espresso:espresso-core:2.2.2',{
exclude group:'com.android.support',module:'support-annotations'
})
compile'com.android.support:appcompat-v7:23.3.0'
testCompile'junit:junit:4.12'
compile'com.google.android.gms:play-services:10.0。 1'
}
img:
解决方案
点击 Install Repository并在错误中同步项目
选项。 SDK管理器将安装缺少的存储库。
I would like to work with Google Maps. My problem:
android-Studio 2.2, android-SDK 4.4, gradle:2.2.2, my OS: win-10
apply plugin: 'com.android.application'
android {
compileSdkVersion 'Google Inc.:Google APIs:21'
buildToolsVersion "23.0.3"
defaultConfig {
applicationId "ir.amir.map"
minSdkVersion 19
targetSdkVersion 23
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
compile 'com.android.support:appcompat-v7:23.3.0'
testCompile 'junit:junit:4.12'
compile 'com.google.android.gms:play-services:10.0.1'
}
img:
解决方案
Click on Install Repository and sync project
option in the error. The SDK manager will install the missing repositories.
这篇关于错误(28,13):无法解析:com.google.android.gms:play-services:10.0.1的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文