Unable to resolve dependency for ':app@debug/compileClasspath': Could not resolve org.jetbrains.kotlin:kotlin-stdlib-jre7:1.2.41.
Unable to resolve dependency for ':app@debugAndroidTest/compileClasspath': Could not resolve org.jetbrains.kotlin:kotlin-stdlib-jre7:1.2.41.
Unable to resolve dependency for ':app@debugUnitTest/compileClasspath': Could not resolve org.jetbrains.kotlin:kotlin-stdlib-jre7:1.2.41.
Unable to resolve dependency for ':app@release/compileClasspath': Could not resolve org.jetbrains.kotlin:kotlin-stdlib-jre7:1.2.41.
Unable to resolve dependency for ':app@releaseUnitTest/compileClasspath': Could not resolve org.jetbrains.kotlin:kotlin-stdlib-jre7:1.2.41.
그럴때는 다음과 같이 app의 build.gradle에서 jre를 jdk로 수정하면 정상적으로 gradle sync 및 빌드가 된다.
implementation"org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
No comments:
Post a Comment