Skip to content
Advertisement

MissingResourceException: Can’t find bundle for base name resources.controls.controls_res, locale en

I can’t understand what the problem is, why he swears and can’t find locale en. Is there a problem with paths or boundle names?

The legacy project, written 15 years ago, used to be in Ant, now it was translated to Gradle, this error has appeared. It builds on Ant without problems.

P.S. I marked the lines to which the errors refer separately in the classes.

ERRORS:

JavaScript

As you can see from the logs, all errors are caused due to the fact that it cannot find * locale en *.

Класс controls_res:

JavaScript

Class controls_res_en:

JavaScript

Class ControlsRes:

JavaScript

введите сюда описание изображения

enter image description here

Advertisement

Answer

Created new empty files and rewrote the contents from the same files – the problem is gone. Apparently, the file encoding collectors could not read. After all, the legacy project has been passed from hand to hand 100 times.

Advertisement