최근 mindSdkVersion을 17로 변경하고 targetSdkVersion을 21로 변경하여 많은 오류가 발생했습니다. 나는 그들 중 일부를 수정,하지만 난이 하나를 해결할 수 없습니다 내가 Mac에서 안드로이드 Studio를 사용하고 있는데 나는 안드로이드 지원 저장소를해결 실패 : com.android.support:appcompat-v7:21.0.1
Error:(28, 13) Failed to resolve: com.android.support:appcompat-v7:21.0.1
.
내 build.gradle 파일 :
apply plugin: 'com.android.application'
android {
compileSdkVersion 21
buildToolsVersion "24.0.3"
defaultConfig {
applicationId "com.swit.sedamaker"
minSdkVersion 17
targetSdkVersion 21
versionCode 2
versionName "1.01"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
productFlavors {
}
}
dependencies {
compile 'com.android.support:appcompat-v7:21.0.1'
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'
})
testCompile 'junit:junit:4.12'
}
나는 여전히 오류가 발생합니다. –
@AmirAmini, 21에서'targetSdkVersion 21'을 계속 유지하려고합니다. – W4R10CK
23 덕분에 업그레이드하려고했습니다. 다른 오류가 있었지만 수정했습니다. 하지만 지금은 에뮬레이터에 설치할 수 없습니다. 그것은 거기에 내 애플 리케이션의 다른 버전이 설치되어 있지만이 에뮬레이터에서 내 애플 리케이션을 실행하고있어 처음이야. –