프로그래밍/Exception Solution

Android Programming : Static interface methods are only supported starting with Android N (--min-api 24): void butterknife.Unbinder.lambda$static$0()

정다실버 2020. 5. 15. 18:35

Static interface methods are only supported starting with Android N (--min-api 24): void butterknife.Unbinder.lambda$static$0()

 

환경 : Butterknife 사용

오류 원인 : Build(.app) 에 complie 옵션을 지정해주지 않음.

해결방안 : 

Build(.app) 의 android { } 안에 다음과 같이 명시

android {

	...

	// 아래와 같이 명시 !!
	compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_8
        targetCompatibility JavaVersion.VERSION_1_8
    }
    
}