[ERROR] invoke-customs are only supported starting with android o (--min-api 26)

2020. 7. 30. 10:40개발자료/Android


반응형

# 방법 1 (확인)

build.gradle(Module: app) 에 추가

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

# 방법 2( 미확인 )

# Disable 'Instant Run'.
Android Studio -> File -> Settings 
-> Build, Execution, Deployment 
-> Instant Run -> Disable checkbox
반응형