简体   繁体   English

预期 ResolvedDependencyResult 但在尝试同步时发现 DefaultUnresolvedDependencyResult

[英]Expected ResolvedDependencyResult but found DefaultUnresolvedDependencyResult when trying to sync

I am using Android Studio 3.6.1 and Gradle 6.3-all .我正在使用 Android Studio 3.6.1 和 Gradle 6.3-all I tried to sync my project and got the following error:我尝试同步我的项目并收到以下错误:

Expected org.gradle.api.artifacts.result.ResolvedDependencyResult but found org.gradle.api.internal.artifacts.result.DefaultUnresolvedDependencyResult Expected org.gradle.api.artifacts.result.ResolvedDependencyResult but found org.gradle.api.internal.artifacts.result.DefaultUnresolvedDependencyResult

No idea how to fix this.不知道如何解决这个问题。

Ok, Some how I got working, by running the following command: watchman watch-del-all && rm -rf $TMPDIR/react-* && rm -rf node_modules/ && npm cache verify && npm install && npm start -- --reset-cache, also removed the.gradle &.idea folders and some.iml files and reopend the project. Ok, Some how I got working, by running the following command: watchman watch-del-all && rm -rf $TMPDIR/react-* && rm -rf node_modules/ && npm cache verify && npm install && npm start -- --重置缓存,还删除了.gradle &.idea 文件夹和 some.iml 文件并重新打开项目。

Go to Android Studio 3.6.2, 3.6.1 version has bug Go to Android Studio 3.6.2,3.6.1版本有bug

I had the same issue while creating APK.我在创建 APK 时遇到了同样的问题。 The following steps help me to resolve the issue.以下步骤可帮助我解决问题。

  1. Change the Gradle version to 6.1.1.将 Gradle 版本更改为 6.1.1。
  2. Delete node module and npm install.删除节点模块并安装 npm。
  3. npm cache verify. npm 缓存验证。

暂无
暂无

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

相关问题 预期 org.gradle.api.artifacts.result.ResolvedDependencyResult 但发现 org.gradle.api.internal.artifacts.result.DefaultUnresolvedDependencyResult - Expected org.gradle.api.artifacts.result.ResolvedDependencyResult but found org.gradle.api.internal.artifacts.result.DefaultUnresolvedDependencyResult “搜索 jacoco 版本时未找到已解决的依赖项。” 从 Git 克隆应用程序并尝试同步 Gradle 后 - "No resolved dependencies found when searching for the jacoco version." After cloning an app from Git and trying to Sync Gradle 同步我的应用程序时出错,它显示消息:预期的开始或结束标签 - Error when sync my app, it shows Message: expected start or end tag Android studio 在我尝试构建离子项目时出现以下错误“Gradle 同步失败:同步失败:原因未知” - Android studio is giving the following error when I am trying to build a ionic project "Gradle sync failed: Sync failed: reason unknown" 尝试下载recycleview时如何解决gradle失败的sync:SSL握手连接? - how to solve gradle faild sync:SSL handshake connection when trying to download recycleview? 尝试同步 gradle 时无法加载类“kotlin.collections.CollectionsKT”错误 - Unable to load class 'kotlin.collections.CollectionsKT' error when trying to sync gradle Flutter 错误:找不到获取器:尝试重建 Flutter 工具时出现“iMobileDevice” - Flutter Error : Getter not found : 'iMobileDevice' when trying to rebuild Flutter tool 在第 x 行找不到可执行代码 - 尝试调试时 - No executable code found at line x - when trying to debug 尝试创建PrintWriter,Android Studio时找不到文件 - File Not Found when trying to create a PrintWriter, Android Studio Android同步失败:找不到项目 - Android sync failed: Project could not be found
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM