【我的Android进阶之旅】解决编译出现错误:Error: In DataSet 'main', no data file for changedFile.

一、问题描述

晚上在Android Studio上,切换分支之后,重新编译运行的时候,报错了,错误信息如下所示:
【我的Android进阶之旅】解决编译出现错误:Error: In DataSet 'main', no data file for changedFile._第1张图片

错误信息文本:

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':p_imphone:packageDebugResources'.
> D:\GitLab Source\XTCWatch_TalentAccount\XTCWatch\p_imphone\src\main\res\values\strings.xml: Error: In DataSet 'main', no data file for changedFile. This is an internal error in the incremental builds code; to work around it, try doing a full clean build.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

* Get more help at https://help.gradle.org

BUILD FAILED in 27s
74 actionable tasks: 30 executed, 44 up-to-date

二、解决错误

你可能感兴趣的:(我的Android进阶之旅)