I am trying to migrate an Android application that I used to develop with Eclipse to Android Studio and I am going bonkers with this migration!
The issue I am facing right now is that my application uses a ResourceBundle (containing a bunch of strings in different languages that are stored in xyz.properties-files). With eclipse I had simply placed those .properties-files in the same directory as a class "Messages" which in its constructor reads the appropriate ResourceBundle depending on the system language and then one can fetch the desired strings from that class using a getString()-method.
Now, when I build this very same project using Android Studio (or rather: using gradle) then these files are obviously missing from the generated .apk file and I get a ClassNotFoundException from the ResourceBundle.getBundle(MSGS_PROPS_NAME)-method.
Apparently - that at least what I learned from reading several threads that I had googled on the subject but of which none suggested a working solution - I need to place these files not under …/app/src/main/java/… but elsewhere in the project's file tree AND I need to add "something" to that darn build.gradle file to teach gradle to include those .properties files into the resulting apk-package so that they can then can be found and read at runtime.
Could some kind soul please describe WHERE to place such files and WHAT ONE NEEDS TO ADD to the app's build.gradle file to get this working again?