자바 컴파일 버전을 1_8로 변경했습니다.기본 메소드 부울 메소드 이름()이 24보다 낮은 API 레벨에서 지원되지 않습니다
defaultConfig {
jackOptions {
enabled true
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
그 후 내 프로젝트를 실행했고, 아래 오류가있어 어떻게해야할지 모르십니까?
Error:Default method boolean test(java.lang.Object null) not supported in Android API level less than 24
Error:Default method void forEach(java.util.function.Consumer null) not supported in Android API level less than 24
Error:Static method void com_google_common_collect_Multiset_lambda$forEachEntry$0(java.util.function.ObjIntConsumer null, com.google.common.collect.Multiset$Entry null) not supported in Android API level less than 24
Error:Default method void forEach(java.util.function.BiConsumer null) not supported in Android API level less than 24
Error:Default method void addAll(java.lang.Iterable null) not supported in Android API level less than 24
Error:Default method boolean enclosesAll(java.lang.Iterable null) not supported in Android API level less than 24
Error:com.android.jack.JackAbortException
Warning:Exception while processing task java.io.IOException: com.android.jack.api.v01.CompilationException
Error:Execution failed for task ':MyApp:compileDebugJavaWithJack'.
> java.io.IOException: com.android.jack.api.v01.CompilationException
아무에게도이 질문에 답해 줄 수 있습니까?
당신이 잭 - 컴파일러를 사용할 수 있나요? 더 이상 지원되지 않으며 더 이상 사용되지 않습니다. – Christopher
예 잭을 활성화했습니다. 코드를 수정했습니다. plesae 그것을 참조하십시오 – Vji
@Christopher 해결할 솔루션이 있습니까? – Vji