Unable to resolve resource bundle in IntelliJ IDEA

I am trying to configure IDEA (14.1.4) to compile GrindPlayer , but I am stuck with the following error

Error:[GrindPlayer]: Unable to resolve resource bundle "Main".

The file GrindPlayer.mxmlhas the following entry:

<fx:Metadata>
    [ResourceBundle("Main")]
</fx:Metadata>

Resource files are located in directories locale:

Source folders are marked:

I already added libraries that I could find in the module dependencies:

The build call from the Makefile is as follows, and it works when I run it on the command line:

/opt/apache-flex-413-102/bin/mxmlc -o build/GrindPlayer.swf \
    -debug=true \
    -locale=en_US,ru_RU \
    -swf-version=11 \
    -target-player=10.2 \
    -default-size=640,360 \
    -default-background-color=0 \
    -sp src locale/{locale} \
    -l "/opt/apache-flex-413-102/frameworks/libs" "/opt/apache-flex-413-102/frameworks/locale/{locale}" \
    -l libs "build/libs" \
    -externs ru.kutu.osmf.advertisement.AdvertisementPlugin \
    -externs ru.kutu.osmf.subtitles.SubtitlesPlugin \
    -define CONFIG::HLS false \
    -define CONFIG::DEV true \
    src/GrindPlayer.mxml \

What exactly am I doing wrong?

+4
source share
3 answers

Perhaps you can try adding -source-path = national_version / {} locale in your compiler arguments

+1
source

ru_RU, en_US locale.

0

try adding "/ opt / apache-flex-413-102 / frameworks / locale / {locale}" to the source path instead of "locale / {locale}"

0
source

Source: https://habr.com/ru/post/1598049/


All Articles