質問

My Android app recently started throwing Lint errors when compiling. I'm getting <key> is not translated in <language>. It tells me If an application has more than one locale, then all the strings declared in one language should also be translated in all other languages.

Unlike some of the other similar questions on this subject, I'm currently only supporting one locale. Eclipse somehow has started thinking that I want to support multiple, and now throws errors when compiling. Yes, I can turn off lint checking when I'm building, or I could set this to a warning instead of a fatal error, but that's just hiding the problem, which is that Eclipse thinks there are multiple locales. How do I fix this?

Edit: I tracked down the source - I added a library project that had a values-da folder. Any way to get the rest of my app to ignore that folder, or do I have to just remove it?

役に立ちましたか?

解決

The only thing that seemed to work for this (thanks @323go for the suggestions) was to delete the folder. Renaming the file may work for you, but I got intermittent "Invalid resource directory name" errors.

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top