简体   繁体   English

如何在运行应用程序时修复 android studio 版本 3.6.2 中的“无法解析结果路径字符串:”错误?

[英]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.

相关问题 如何修复`android.app.Application无法转换为'错误 - How can I fix an `android.app.Application cannot be cast to` error 如何修复Dependency Error Android Studio - How can I fix Dependency Error Android Studio 如何修复 Android Studio 中的“无法解析符号“v7”错误 - How to fix 'Cannot Resolve Symbol 'v7' error in Android Studio 如何修复错误:在 android 工作室 SQLite 数据库中找不到符号 - How to fix error: cannot find symbol in android studio SQLite database 如何解决此错误:结果无法解析为变量 - How do I fix this error: Result cannot be resolved to a variable 尝试在Android Studio中构建项目时如何解决此错误? - How can I fix this error when I try to build my project in Android Studio? 如何解析 JSON 字符串,其中数组不是逗号分隔的? (Gson, Android 工作室) - How can I parse a JSON string in which an array is not comma separated? (Gson, Android Studio) Android Studio和Java的新手,卡住了一个我无法修复的错误 - New to android studio and java, stuck with an error I can't fix 我如何解决异常 BEGIN_OBJECT 但 STRING 在第 1 行第 2 列路径 $ 在 android studio 中? - How can i resolve exception BEGIN_OBJECT but was STRING at line 1 column 2 path $ in android studio? 如何解决任务':app:mergeDebugResources'的执行失败。 在 android 工作室 3.6.2 - How to resolve Execution failed for task ':app:mergeDebugResources'. in android studio 3.6.2
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM