[英]How can I fix the "Cannot parse result path string:" error in android studio version 3.6.2 on running the application?
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:我正在尝试在 android 工作室版本 3.6.2 中运行/调试应用程序,但返回错误提示无法解析结果路径字符串:
Build output box shows:构建 output 框显示:
Build failed: Cannot parse result path string:构建失败:无法解析结果路径字符串:
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.问题出在 gradle 版本上,我只需从 6.5 版本切换到 6.5.1 版本,重建后它工作得很好。
If you are on windows go File -> Project Structure, on project change the gradle version.如果您使用的是 windows go 文件 -> 项目结构,请在项目中更改 gradle 版本。
The problem might be the gradle version.问题可能是 gradle 版本。 Using a gradle version above 6.5 should fix the problem to allow the build to complete.
使用高于 6.5 的 gradle 版本应该可以解决问题以完成构建。 If the problem persists, I would suggest reinstalling android studio with updated gradle version.
如果问题仍然存在,我建议使用更新的 gradle 版本重新安装 android studio。
To change gradle version: Navigate to file-> project structure and access the dropdown menu besides gradle.要更改 gradle 版本:导航到文件-> 项目结构并访问 gradle 之外的下拉菜单。
Go to gradle project >>update dependencies classpath. Go 到 gradle 项目>>更新依赖类路径。
Thats all就这样
This seems to be a issue with gradle cache.这似乎是 gradle 缓存的问题。 Try below methods
试试下面的方法
Method1: Try invalidate cahce/restart option from menu.方法 1:尝试从菜单中使 cahce/restart 选项无效。
Method2: Clear the gradle cache manually by deleting "cache" folder from the below location "C:\Users\USER_NAME.gradle\caches"方法 2 :通过从以下位置“C:\Users\USER_NAME.gradle\caches”删除“cache”文件夹手动清除 gradle 缓存
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.