소프트웨어에 대한 모든 것

default interface methods are only supported starting with android n (--min-api 24) 빌드 에러 해결 본문

안드로이드

default interface methods are only supported starting with android n (--min-api 24) 빌드 에러 해결

앤테바 2021. 11. 5. 05:40
반응형

안드로이드 스튜디오에서 빌드시 빌드 에러 발생

 

에러 내용:

default interface methods are only supported starting with android n (--min-api 24)

 

해결:

build.gradle에 아래 내용 추가

    compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_8
        targetCompatibility JavaVersion.VERSION_1_8
    }

 

반응형
Comments