私は、場所の目的のためにGoogle Playサービスを使用しようとしています。そのため、Google Playサービスを自分のアプリに追加したかったのです。 build.gradle dependinciesでは次の行を追加しました。Androidスタジオでgoogle playサービスのバージョンを見つける方法は?
compile 'com.google.android.gms:play-services:9.0.1'
は、しかし、それは私がインストールされているサービスはGoogle Playのバージョンを見つけるcouldntのエラー
Error:(25, 13) Failed to resolve: com.google.android.gms:play-services:9.0.1
次与えます。 SDKツール]タブでは、バージョン30
言う私も、次の行を試してみたが、それはまた
compile 'com.google.android.gms:play-services:30'
編集同じエラーを与えた:ここでは全体のbuild.gradleファイルです。
apply plugin: 'com.android.application'
android {
compileSdkVersion 23
buildToolsVersion "23.0.3"
defaultConfig {
applicationId "ozu.cs394.umurali.whereismycar"
minSdkVersion 15
targetSdkVersion 23
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:23.1.1'
compile 'com.google.android.gms:play-services:9.0.1'
}
どのバージョン あなたが持っている? – hopeman
私はSDKツールを持っています25.1.6 – user3160302
あなたの 'build.gradle'(app)ファイルを投稿できます – hopeman