androidstudio version : 3.2.1
Kotlin 코틀린
처음 프로젝트를 생성했는데 MainActivity에서 오류가 난다..
R. 에서
오류 내용은 아래와 같다
Unable to resolve dependency for ‘:app@debug/compileClasspath’: Could not find any version that matches com.android.support:appcompat-v7:31.+.
Open File
Show Details
Unable to resolve dependency for ‘:app@debugAndroidTest/compileClasspath’: Could not find any version that matches com.android.support:appcompat-v7:31.+.
Open File
Show Details
Unable to resolve dependency for ‘:app@debugUnitTest/compileClasspath’: Could not find any version that matches com.android.support:appcompat-v7:31.+.
Open File
Show Details
Unable to resolve dependency for ‘:app@release/compileClasspath’: Could not find any version that matches com.android.support:appcompat-v7:31.+.
Open File
Show Details
Unable to resolve dependency for ‘:app@releaseUnitTest/compileClasspath’: Could not find any version that matches com.android.support:appcompat-v7:31.+.
Open File
Show Details
[해결 방법]
build.gradle(Module)에
implementation 'com.android.support:appcompat-v7:31.+'
이부분을
implementation 'com.android.support:appcompat-v7:+'
로 수정해 준다. 그러면 알아서 적합학 버전을 찾을 것이다.
수정하고 Sync 해주거나 다시 Bulid 해준다.
일단 나는 이렇게 오류를 해결했다!
<참고>
https://copycoding.tistory.com/244
https://teamnova0410-dev.tistory.com/2
https://sanghun0724.tistory.com/3