Execution failed for task ':app:processDebugResources' even with latest build tools

前端 未结 10 1956
南笙
南笙 2020-12-03 05:14

I am getting this error when I try to run my project. I have installed the latest build tools- 23.0.3 but still the error persists. How do I fix this?

Execut         


        
10条回答
  •  误落风尘
    2020-12-03 05:54

    After updating my Android SDK I stumbled upon this very problem and I tried many ways without success. What was most irritating to me when searching for a fix, were the lots of answers suggesting to change the CompileSdkVersion to a certain number while obviously this number changes with time, so here's what I did instead.

    I created a new project and ran it on the emulator to make sure it's working, then checked its "\android\app\build.gradle" file and copied the numeric value of CompileSdkVersion and pasted into the same file in my other project that could not be built properly anymore. Now my problem's gone. Hope that helps.

提交回复
热议问题