Quick Links: Download Gideros Studio | Gideros Documentation | Gideros community chat | DONATE
Unable to export APK — Gideros Forum

Unable to export APK

antixantix Member
edited July 2017 in General questions
Hey all. I have an issue exporting to APK. In my test project I have..

main.lua
local m = require("module")
m.init()
 
application:setBackgroundColor(0x008800)
and module.lua
local M = {}
 
M.init = function(options)
  print("module initited")
end
 
return M
In the windows player this works, but when I export to the device as an APK it just crashes on running. What am I missing to make this work? I know it must be simple but I can't figure it out (insert frustrated simian noises here) :-??

Edit:
I ran Android Studio and in ADB the error is..
07-02 08:29:16.340 20499-20516/? E/AndroidRuntime: FATAL EXCEPTION: GLThread 2096
Process: com.yourdomain.yourapp, PID: 20499
com.giderosmobile.android.player.LuaException: main.lua:5: module 'module' not found:
no field package.preload['module']
no file './module.lua'
no file '/usr/local/share/lua/5.1/module.lua'
no file '/usr/local/share/lua/5.1/module/init.lua'
no file '/usr/local/lib/lua/5.1/module.lua'
no file '/usr/local/lib/lua/5.1/module/init.lua'
no file './module.so'
no file '/usr/local/lib/lua/5.1/module.so'
no file '/usr/local/lib/lua/5.1/loadall.so'
stack traceback:
main.lua:5: in main chunk
(luac): in main chunk
at LUA.MAIN_CHUNK(main.lua:5)
at LUA.MAIN_CHUNK(luac:1234)
That seems strange that the file does not exist when clearly it does? (insert more simian noises here)

Comments

Sign In or Register to comment.