Gradle assemble of an Android project failed, can't find R.txt

前端 未结 4 1991
余生分开走
余生分开走 2021-01-04 17:43

Sorry for my poor English. I\'m trying to migrate my project to Gradle with Android Studio, but currently the build fails during processDebugResources.

4条回答
  •  一生所求
    2021-01-04 18:30

    I had the same problem, beginning when I fumbled around adding a second sub-subfolder to my assets directory. Removing the folder (basically undoing what I did to cause the problem) didn't help, which indicated it may be a problem with caches. The accepted answer may work, if by changing the manifest file you trigger Android Studio to invalidate its caches (apparently this is more than clean and rebuild, as I tried that several times).

    Simple thing to try: go to File->Invalidate Caches and Restart.

提交回复
热议问题