Android API 29以降のバージョンでは GradleException () は対応しておらず、 FileNotFoundException () に変更する必要があるそうです。
status: will not fix Invalid (untrue/unsound/erroneous), inconsistent with product, not on roadmap. type: question Request for information or clarification. Not an issue.