Could not create service of type OutputFileResponsitory using ExectionGradleServices...

一、出现问题

Could not create service of type OutputFileResponsitory using ExectionGradleServices.createOutputFileResponsitory().

二、问题分析及解决
开发云重启后,重新打开AndroidStudio,项目编译出问题,查阅的原因是权限的问题,参考下面链接,需要修改gradle jdk,进到设置界面发现,原来设置的是JDK11,由于重启导致自动切回了JDK8。

且JDK11下的jre之前导入过google.crt和jcenter.crt进行授权,但是JDK8并未导入过,所以又切回到了JDK11,然后清除缓存重启AS解决该问题。

AndroidStudio编译失败问题汇总

猜你喜欢

转载自blog.csdn.net/kongqwesd12/article/details/130941669