首页 > 解决方案 > Android Studio build error logs not shown correctly

问题描述

I have a simple project and I remove some color resources from my file.

Expectations:

I build the project and it should fail. In the Build Output I should have the logs where it shows me the files where build fails. (Because the color resources are missing)

Reality (Android Studio 3.4.2):

I build the project and it fails. In the Build Output I see:

Android resource linking failed...

I navigate through all the failed tasks and none of them shows the proper logs. Android Studio used to have this working properly. Does any one know any settings that maybe can fix what the Build Output shows?

I know that if I Analyze > Inspect code I can see the proper list of files where there are errors. But this takes time. I also know that running the build task in terminal it shows the files where there are errors. I want to have it like it used to be before.

I know that someone at Android Studio had one job and he didn't do it right but here I am for your help.

标签: androidandroid-studio

解决方案


尝试:构建 -> 清理 gradle 文件的清理项目

或者:File->Invalidate Caches / Restart Then Sync Project with gradle files

试一试,看看它是否会改变任何东西。它应该开始为资源文件提供错误。


推荐阅读