Kotlin的报错提示:Invoke-customs are only supported starting with Android O (--min-api 26)
Posted 彬sir哥
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Kotlin的报错提示:Invoke-customs are only supported starting with Android O (--min-api 26)相关的知识,希望对你有一定的参考价值。
Kotlin的报错提示:
:app:dexBuilderDebug
Invoke-customs are only supported starting with android O (--min-api 26)
org.gradle.workers.internal.DefaultWorkerExecutor$WorkExecutionException: A failure occurred while executing com.android.build.gradle.internal.dexing.DexWorkAction
org.gradle.tooling.BuildException: Failed to process: D:\\android\\FloatMenu\\app\\build\\tmp\\kotlin-classes\\debug, D:\\android\\FloatMenu\\app\\build\\intermediates\\javac\\debug\\classes
com.android.builder.dexing.DexArchiveBuilderException: Failed to process: D:\\android\\FloatMenu\\app\\build\\tmp\\kotlin-classes\\debug, D:\\android\\FloatMenu\\app\\build\\intermediates\\javac\\debug\\classes
com.android.builder.dexing.DexArchiveBuilderException: Error while dexing.
com.android.tools.r8.CompilationFailedException: Compilation failed to complete
com.android.tools.r8.internal.a: Invoke-customs are only supported starting with Android O (--min-api 26)
java.util.concurrent.ExecutionException: com.android.tools.r8.internal.a: Invoke-customs are only supported starting with Android O (--min-api 26)
[CIRCULAR REFERENCE: com.android.tools.r8.internal.a: Invoke-customs are only supported starting with Android O (--min-api 26)]
Failed to process: D:\\android\\FloatMenu\\app\\build\\tmp\\kotlin-classes\\debug, D:\\android\\FloatMenu\\app\\build\\intermediates\\javac\\debug\\classes
解决:
以上是关于Kotlin的报错提示:Invoke-customs are only supported starting with Android O (--min-api 26)的主要内容,如果未能解决你的问题,请参考以下文章
Kotlin的报错提示:java.lang.NumberFormatException: For input string: ““
android studio kotlin 编译的报错提示::app:stripDebugDebugSymbols
Android的kotlin的报错提示:java.lang.ArrayIndexOutOfBoundsException: length=0; index=-1
Kotlin的报错提示:Invoke-customs are only supported starting with Android O (--min-api 26)
AS kotlin 编译的报错提示:java.lang.IllegalArgumentException: File db/teststaff.db contains a path separator
Android Studio 4.2.2 Kotlin(不能进入类)的报错提示:Cannot find declaration to go to