简体   繁体   English

当我从 github 克隆现有的 android 项目时,会显示此错误。 任何人都可以修复它吗? 请帮我

[英]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-alpha05 androidx.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 - 禁用离线模式并重新运行构建

  1. Go to gradle on the right hand side右侧的 Go 到 gradle
  2. Make sure to uncheck this option确保取消选中此选项
  3. Rebuild project重建项目在此处输入图像描述

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Android - PNG 图像具有 alpha 通道,但在 imageview 中显示白色背景。 我该如何解决? - Android - PNG image has alpha channel, but when in imageview white background is shown. How can I fix? Flutter:当我尝试运行从 github 克隆的 flutter 应用程序时,但构建失败,有人可以告诉我如何解决吗? - Flutter : when i try to run flutter app that i clone from github, but the build failed, could someone inform me how to solve it? 如何修复“错误:Flutter 目录不是 GitHub 项目的克隆。” 尝试安装 flutter 时出错? - How do I fix the "Error: The Flutter directory is not a clone of the GitHub project." error when I'm trying to install flutter? 任何人都可以帮助我理解 Android Studio 中的 SharedPreferences - Can anyone please help me understand SharedPreferences in Android Studio 请任何人能帮助我找出xml文件中的错误 - Please can anyone help me to find out the error in the xml file 我尝试在我的小型 android 项目中使用意向电子邮件,但它不起作用。 谁能帮我找出错误? - I tried to use intent email in my small android project but its not working. Can anyone help me to find the error? 从Github到现有的Android项目 - From Github to Existing Android project 如何在 Android Studio 中从 GitHub 克隆项目 - How to clone project from the GitHub in Android studio 我正在尝试将数据从android应用程序中的wcf服务发布到,但出现错误400。请帮助我 - I am trying to POST data to from wcf service from android application but getting Error 400. Please help me 谁能帮我纠正此代码? - Can anyone please help me correct this code?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM