How can I fix the "Cannot parse result path string:" error in android studio version 3.6.2 on running the application?

huangapple go评论142阅读模式
英文:

How can I fix the "Cannot parse result path string:" error in android studio version 3.6.2 on running the application?

问题

我正在尝试在Android Studio版本3.6.2中运行/调试该应用程序,但返回了一个错误,显示无法解析结果路径字符串:

构建输出框显示:

构建失败:
无法解析结果路径字符串:

英文:

I am trying to run/debug the application in android studio version 3.6.2 but returning an error saying Cannot parse result path string:

Build output box shows:

Build failed:
Cannot parse result path string:

答案1

得分: 9

问题出在Gradle版本上
我只需要从版本6.5切换到6.5.1,然后重新构建,问题就解决了。

如果你使用的是Windows,在菜单中选择“文件”->“项目结构”,在项目中更改Gradle版本。

英文:

The problem is with the gradle version
I simply had to switch from version 6.5 to 6.5.1 and after rebuilding it worked just fine.

If you are on windows go File -> Project Structure, on project change the gradle version.

答案2

得分: 2

问题可能是 Gradle 版本。使用 6.5 以上的 Gradle 版本应该可以解决问题,使构建能够完成。如果问题仍然存在,我建议重新安装 Android Studio 并使用更新的 Gradle 版本。

更改 Gradle 版本:导航至文件->项目结构,然后访问 Gradle 旁边的下拉菜单。

英文:

The problem might be the gradle version. Using a gradle version above 6.5 should fix the problem to allow the build to complete. If the problem persists, I would suggest reinstalling android studio with updated gradle version.

To change gradle version: Navigate to file-> project structure and access the dropdown menu besides gradle.

答案3

得分: 0

去到Gradle项目,然后更新依赖的类路径。

就这些。

英文:

Go to gradle project >>update dependencies classpath .

Thats all

答案4

得分: 0

这似乎是与 Gradle 缓存有关的问题。请尝试以下方法:

方法1: 在菜单中尝试选择“使缓存无效/重新启动”选项。

方法2: 手动清除 Gradle 缓存,通过从以下位置删除“C:\Users\USER_NAME.gradle\caches”目录中的“cache”文件夹。

英文:

This seems to be a issue with gradle cache. Try below methods

Method1: Try invalidate cahce/restart option from menu.

Method2: Clear the gradle cache manually by deleting "cache" folder from the below location "C:\Users\USER_NAME.gradle\caches"

答案5

得分: 0

更新 build.gradle 文件中的最新的 Kotlin 版本的 build gradle。

英文:

update the latest build gradle Kotlin version in build.gradle file

huangapple
  • 本文由 发表于 2020年5月4日 15:39:47
  • 转载请务必保留本文链接:https://go.coder-hub.com/61587290.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定