Hi. I’m having some trouble with an Android build. I have a file in a subfolder utils called fontmanager.lua
I get it with
fm = require("utils.fontmanager")
and then do something with fm. This works fine and dandy on the simulator, but when I run it on an Android tablet it comes up with
V/Corona ( 3692): \> Class.forName: system.fontmanager.LuaLoader V/Corona ( 3692): WARNING: Could not load 'LuaLoader' I/Corona ( 3692): Runtime error I/Corona ( 3692): module 'system.fontmanager' not found:resource (system.fontmanager.lu) does not exist in archive I/Corona ( 3692): no field package.preload['system.fontmanager'] I/Corona ( 3692): no file '(null)/system.fontmanager.lua' I/Corona ( 3692): no file '(null)/system.fontmanager.lua' I/Corona ( 3692): no file '/data/app-lib/uk.org.robsons.paul.Font\_Manager-1/libsystem.fontmanager.so' I/Corona ( 3692): no file './system.fontmanager.so' I/Corona ( 3692): no file '(null)/system.fontmanager.so' I/Corona ( 3692): no file '/data/app-lib/uk.org.robsons.paul.Font\_Manager-1/libsystem.so' I/Corona ( 3692): no file './system.so' I/Corona ( 3692): no file '(null)/system.so' I/Corona ( 3692): stack traceback: I/Corona ( 3692): [C]: in function 'require' I/Corona ( 3692): ?: in function 'require' I/Corona ( 3692): /Users/paulrobson/Corona/Font Manager/main.lua:9: in main
on the log, i.e. it can’t find the file, it doesn’t load, nothing ever gets started.
What am I doing wrong? Do I have to specify it as a plugin ?