关于Could not find method javacompileOptions() for arguments

Could not find method javacompileOptions() for arguments [build_btlgeym1msbfmrnonllhtxztm r u n c l o s u r e 1 _run_closure1 runclosure1_closure3$_closure5@12291bed] on DefaultConfig_Decorated{name=main, dimension=null, minSdkVersion=DefaultApiVersion{mApiLevel=10, mCodename=‘null’}, targetSdkVersion=DefaultApiVersion{mApiLevel=28, mCodename=‘null’},

解决方法

compileOptions{

 sourceCompatibility JavaVersion.VERSION_1_8

 targetCompatibility JavaVersion.VERSION_1_8

}

你可能感兴趣的:(关于Could not find method javacompileOptions() for arguments)