Hi, im working on mac and using latest Corona 2020.3582,and got Android Studio 3.6.3 and i’ve copied /Applications/Corona-3582/Native/ProjectTemplate to some local directory to start my new native project.
I’ve added plugins table to build.settings:
settings =
{
orientation =
{
default = "portrait",
supported = { "portrait" }
},
iphone =
{
xcassets = "Images.xcassets",
plist =
{
UILaunchStoryboardName = "LaunchScreen",
},
},
plugins =
{
["plugin.OneSignal"] =
{
publisherId = "com.onesignal",
},
["plugin.utf8"] =
{
publisherId = "com.coronalabs"
},
},
}
then ive modified main.lua to look like this:
local oneSignal = require("plugin.OneSignal")
function IdsAvailable(userID, pushToken)
end
oneSignal.IdsAvailableCallback(IdsAvailable)
and i’ve got error when debugging from android studio:
V/Corona: > Class.forName: plugin.OneSignal.LuaLoader
2020-05-27 15:16:40.635 17006-17225/com.mycompany.app I/Corona: ERROR: Runtime error
module 'plugin.OneSignal' not found:resource (plugin.OneSignal.lu) does not exist in archive
no field package.preload['plugin.OneSignal']
no file '(null)/plugin/OneSignal.lua'
no file '(null)/plugin/OneSignal.lua'
no file '/data/app/com.mycompany.app-Ng93PgxnrQ9OB1d13eGfOQ==/lib/arm64/libplugin/OneSignal.so'
no file './plugin/OneSignal.so'
no file '(null)/plugin/OneSignal.so'
no file '/data/app/com.mycompany.app-Ng93PgxnrQ9OB1d13eGfOQ==/lib/arm64/libplugin.so'
no file './plugin.so'
no file '(null)/plugin.so'
no file '/data/app/com.mycompany.app-Ng93PgxnrQ9OB1d13eGfOQ==/lib/arm64/libplugin.OneSignal.so'
no file './plugin.OneSignal.so'
no file '(null)/plugin.OneSignal.so'
no Java class 'plugin.OneSignal.LuaLoader'
no global loaded symbol 'luaopen_plugin_OneSignal'
no zipped .so symbol at '/data/app/com.mycompany.app-Ng93PgxnrQ9OB1d13eGfOQ==/base.apk!/lib/arm64-v8a/libplugin.OneSignal.so'
The same goes when i try to use utf8 plugin. How to solve this issue?