原因
他的报错类似这种,这个是由于 Gradle 导致的
我是因为删除了 rm -rf ~/.gradle/cached
Task :app:checkDebugAarMetadata FAILED
Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.
AILURE: Build failed with an exception.
- What went wrong:
Execution failed for task ':app:checkDebugAarMetadata'.
Multiple build operations failed.
java.nio.file.NoSuchFileException: /Users/private/.gradle/caches/transforms-3/*/results.bin
java.nio.file.NoSuchFileException: /Users/private/.gradle/caches/transforms-3/*/results.bin
java.nio.file.NoSuchFileException: /Users/private/.gradle/caches/transforms-3/*/results.bin
java.nio.file.NoSuchFileException: /Users/private/.gradle/caches/transforms-3/*/results.bin
java.nio.file.NoSuchFileException: /Users/private/.gradle/caches/transforms-3/*/results.bin
如何解决
1、应该删除的是 ~/.gradle ,而不是 ~/.gradle/cached
可能会导致的问题
请开启全局代理,并开启命令行代理 否则重新编译下载 gradle 过程中会导致失败
本文由 邓尘锋 创作,采用 知识共享署名4.0 国际许可协议进行许可
本站文章除注明转载/出处外,均为本站原创或翻译,转载前请务必署名
最后编辑时间为: Dec 21, 2024 at 11:41 pm