Error using eclipse for Android - No resource found that matches the given name

后端 未结 15 1650
误落风尘
误落风尘 2020-12-10 10:42

Common problem I\'m sure, but I can\'t figure it out. In my AndroidManifest.xml and main.xml I\'m getting the no resource found that matches the given name. I\'ve double c

15条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-10 11:29

    For me the issue appeared because my string file could not be parsed. I wanted to have a value like '%s - %s'. However this appeared to be triggering a problem, it seems string will try to parse this value in a special way. Because two string values were provided in a single value an error was written in the console, but I had so many errors triggered from that, that the initial error was hidden, because of small console buffer. Adding formatted="false" attribute to this string value of mine fixed the problem in the string file (which btw was not reported as compilation error in the file itself) and I was able to build once more.

提交回复
热议问题