build过程中Run tasks报错

app:mergeExtDexDebug

Caused by: com.android.tools.r8.utils.AbortException: Error: Invoke-customs are only supported starting with Android O (--min-api 26)


解决办法:

在build.gradle(Module:app)中添加

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

你可能感兴趣的:(build过程中Run tasks报错)