minSdkVersion 17
targetSdkVersion 27
이렇게 만드려고 합니다.
그래서 프로젝트 생성시 target SDK를 27로 주고,
프로젝트 생성 후에 gradle에가서 minSdkVersion을 17로 바꾸고 snyc를 하니,
implementation 'com.android.support:appcompat-v7:27.1.1'
에서 빨간줄이 생겨서 마우스를 대보니, 아래와 같은 오류가 뜹니다 ㅠㅠ
All com.android.support libraries must use the exact same version specification (mixing versions can lead to runtime crashes). Found versions 27.1.1, 25.3.1. Examples include com.android.support:animated-vector-drawable:27.1.1 and com.android.support:support-media-compat:25.3.1 less... (⌘F1)
There are some combinations of libraries, or tools and libraries, that are incompatible, or can lead to bugs. One such incompatibility is compiling with a version of the Android support libraries that is not the latest version (or in particular, a version lower than your targetSdkVersion). Issue id: GradleCompatible
25.3.1 은 언제 썼는지도 모르겠는데... 왜 저런 오류가 뜰까요??? ㅠㅠ
어차피 만들고 sdk만 건드린거지만......혹시 몰라서 dependencies 전체를 올려봅니다.
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:27.1.1'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
}