Unresolved reference: java 오류 해결방법

2022. 6. 23. 15:12프로그램/안드로이드

아래의 블로그를 통해 문제를 해결.

 

https://velog.io/@jeep_chief_14/Unresolved-reference-java-%EC%98%A4%EB%A5%98

 

Unresolved reference: java 오류

최근 개인 프로젝트를 위해 프로젝트를 새로 생성하고Activity를 이동하는 코드를 짜던 중 오류가 발생했다.위 코드에서 .java 부분에서 에러가 발생했는데..Unresolved reference: java으응?라이브러리를

velog.io

 

 

dependencies {
    implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
    //implementation 'androidx.core:core-ktx:1.8.0'
    implementation 'androidx.core:core-ktx:1.3.2'
    implementation 'androidx.appcompat:appcompat:1.4.2'
    implementation 'com.google.android.material:material:1.6.1'
    implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
    testImplementation 'junit:junit:4.+'
    androidTestImplementation 'androidx.test.ext:junit:1.1.3'
    androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
}

 

androidx.core:core-ktx:1.8.0 -> 1.3.2 로 버전을 내린 후 

class.java 에 생긴 에러를 해결할 수 있었습니다.