錯(cuò)誤1:Could not find method execute() for arguments [] on task ':course:copyGuardDebugApk' of type org.gradle.api.tasks.Copy.
意思是自定義Task不能直接調(diào)用execute方法來(lái)執(zhí)行,方法不可用。

image.png
解決方案:
使用finalizedBy替代execute
https://github.com/getsentry/sentry-java/pull/650
錯(cuò)誤2:dex方法數(shù)超出65536

image.png