1 min read

Apple M1 Gradle编译问题

Gradle版本升级到6.7.1,使用7.0.2版本会出现各种奇怪问题,修改gradle.properties中的发布地址到以下地址:

distributionUrl=https\://services.gradle.org/distributions/gradle-6.7.1-all.zip

错误1:

Cannot create service of type ReservedFileSystemLocationRegistry using ProjectExecutionServices.createReservedFileLocationRegistry() as there is a problem with parameter #1 of type List.

解决方法:

项目目录下运行 ` ./gradlew --stop`

错误2:

could not add entry ':app:packageRelease' to cache executionHistory.bin
java.io.IOException: No space left on device

磁盘空间不够

>Cannot create service of type TaskExecuter using ProjectExecutionServices