1
나는 을 사용하는이 오래된 프로젝트를 가지고 있습니다. 이제 play-services-location:11.8.0
으로 업데이트하고 싶습니다. 그래서 앱 build.gradle 파일을 변경하고 동기화를 시도했지만 shows error
저는 Android 스튜디오를 처음 접해서 도움을 얻을 수있었습니다.이전 프로젝트에서 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'
}
실제로 찾지 못했습니다 문제를 당신의 build.gradle 파일을 구글 받는다는를 추가하고 수정해야했던 프로젝트 build.gradle 그렇게 추가 구글() '구글 받는다는 저장소와 동기화 프로젝트를 추가' 속임수. 고마워. 댓글에 감사드립니다.하지만 답을 추가해 주셔서 감사합니다. 건배! – karatuno
fyi, 'google maven 추가'링크가 질문의 이미지로 첨부 한 오류 메시지 아래에 있음 –