1
私はこの古いプロジェクトをplay-services-location:9.0.1
に使用しています。これをplay-services-location:11.8.0
に更新します。 アプリのbuild.gradleファイルを変更して同期しようとしましたが、shows error
私はアンドロイドスタジオに何か助けになると思います。古いプロジェクトでgoogle playサービスを更新する
build.gradle(モジュール:アプリ)古い
apply plugin: 'com.android.application'
android {
compileSdkVersion 23
buildToolsVersion '26.0.2'
defaultConfig {
applicationId "com.tinmegali.mylocation"
minSdkVersion 19
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.4.0'
compile 'com.google.android.gms:play-services-location:9.0.1'
}
新しいbuild.gradle(モジュール:アプリ)
apply plugin: 'com.android.application'
android {
compileSdkVersion 27
buildToolsVersion '26.0.2'
defaultConfig {
applicationId "com.tinmegali.mylocation"
minSdkVersion 19
targetSdkVersion 27
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:27.0.2'
compile 'com.google.android.gms:play-services-location:11.8.0'
}
を修正する必要がありますトリック。ありがと。 コメントに感謝してくれましたが、感謝して答えを削除しました。乾杯! – karatuno
fyi、「google mavenを追加」リンクが質問の画像として添付されたエラーメッセージの下にありました –