[英]When I clone existing android project from github and this error is shown. Could anyone fix it? please help me
Could not resolve all artifacts for configuration ':classpath'.
无法解析配置“:classpath”的所有工件。
Could not resolve com.squareup:kotlinpoet:1.4.0.无法解析 com.squareup:kotlinpoet:1.4.0。
Required by:要求:
project: > androidx.navigation:navigation-safe-args-gradle-plugin:2.3.0-alpha05 >项目: > androidx.navigation:navigation-safe-args-gradle-plugin:2.3.0-alpha05 >
androidx.navigation:navigation-safe-args-generator:2.3.0-alpha05androidx.navigation:navigation-safe-args-generator:2.3.0-alpha05
> No cached version of com.squareup:kotlinpoet:1.4.0 available for offline mode.> 没有 com.squareup:kotlinpoet:1.4.0 的缓存版本可用于离线模式。
> No cached version of com.squareup:kotlinpoet:1.4.0 available for offline mode.> 没有 com.squareup:kotlinpoet:1.4.0 的缓存版本可用于离线模式。
> No cached version of com.squareup:kotlinpoet:1.4.0 available for offline mode.> 没有 com.squareup:kotlinpoet:1.4.0 的缓存版本可用于离线模式。
> No cached version of com.squareup:kotlinpoet:1.4.0 available for offline mode.> 没有 com.squareup:kotlinpoet:1.4.0 的缓存版本可用于离线模式。
> No cached version of com.squareup:kotlinpoet:1.4.0 available for offline mode.> 没有 com.squareup:kotlinpoet:1.4.0 的缓存版本可用于离线模式。
> No cached version of com.squareup:kotlinpoet:1.4.0 available for offline mode.> 没有 com.squareup:kotlinpoet:1.4.0 的缓存版本可用于离线模式。
> No cached version of com.squareup:kotlinpoet:1.4.0 available for offline mode.> 没有 com.squareup:kotlinpoet:1.4.0 的缓存版本可用于离线模式。
> No cached version of com.squareup:kotlinpoet:1.4.0 available for offline mode.> 没有 com.squareup:kotlinpoet:1.4.0 的缓存版本可用于离线模式。
> No cached version of com.squareup:kotlinpoet:1.4.0 available for offline mode.> 没有 com.squareup:kotlinpoet:1.4.0 的缓存版本可用于离线模式。
> No cached version of com.squareup:kotlinpoet:1.4.0 available for offline mode.> 没有 com.squareup:kotlinpoet:1.4.0 的缓存版本可用于离线模式。
Possible solution:可能的解决方案:
- Disable offline mode and rerun the build- 禁用离线模式并重新运行构建
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.