[英]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.
以下步骤可帮助我解决问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.