Default interface methods are only supported starting with Android N (--min-api 24): androidx.lifecycle.Lifecycle androidx.lifecycle.LifecycleRegistryOwner.getLifecycle()

 

아래처럼 해주면 해결된다.

 

Gradle Scripts > build.gradle ( Module:app )

android	{
	...
    compileOptions {
    	sourceCompatibility JavaVersion.VERSION_1_8
    	targetCompatibility JavaVersion.VERSION_1_8
	}
}

+ Recent posts