Hi there,
I’m trying to submit a (very) minor update to the Play Store, but in order to do so, I’m being told I need to use v2 of the iap plugin. I am indeed able to successfully build my apk with v2 of the plugin, however, upon running the app, I am immediately confronted with a fatal runtime error (shown at the bottom of this post).
From my build.settings:
settings = {
plugins =
{
["plugin.google.iap.billing.v2"] = --2.4.0
{
publisherId = "com.solar2d", --2.4.0
supportedPlatforms = { android=true }
},
From my main.lua:
myData.store = require( "plugin.google.iap.billing.v2" )
From my config.lua:
application.license={
google={
key="***"
}
}
And the runtime error itself:
02-07 15:06:19.710 5442 5496 I Corona : Platform: SM-G736U1 / ARM64 / 12 / Adreno (TM) 642L / OpenGL ES 3.2 V@0530.0 (GIT@cac6e6f805, I5187d04b75, 1637574833) (Date:11/22/21) / 2022.3685 / English | US | en_US | en
02-07 15:06:19.717 5442 5496 V Corona : > Class.forName: shared.google.play.services.base.LuaLoader
02-07 15:06:19.722 5442 5496 V Corona : > Class.forName: CoronaProvider.licensing.google.LuaLoader
02-07 15:06:19.722 5442 5496 V Corona : < Class.forName: CoronaProvider.licensing.google.LuaLoader
02-07 15:06:19.723 5442 5496 V Corona : Loading via reflection: CoronaProvider.licensing.google.LuaLoader
02-07 15:06:19.735 5442 5496 I Corona : 6
02-07 15:06:19.740 5442 5496 V Corona : > Class.forName: plugin.appodeal.LuaLoader
02-07 15:06:19.740 5442 5496 V Corona : < Class.forName: plugin.appodeal.LuaLoader
02-07 15:06:19.740 5442 5496 V Corona : Loading via reflection: plugin.appodeal.LuaLoader
02-07 15:06:19.741 5442 5496 V Corona : > Class.forName: plugin.google.iap.billing.v2.LuaLoader
02-07 15:06:19.742 5442 5496 V Corona : < Class.forName: plugin.google.iap.billing.v2.LuaLoader
02-07 15:06:19.742 5442 5496 V Corona : Loading via reflection: plugin.google.iap.billing.v2.LuaLoader
02-07 15:06:19.744 5442 5496 V Corona : > Class.forName: plugin.google.iap.billing.LuaLoader
02-07 15:06:19.745 5442 5496 I Corona : ERROR: Runtime error
02-07 15:06:19.745 5442 5496 I Corona : module 'plugin.google.iap.billing' not found:resource (plugin.google.iap.billing.lu) does not exist in archive
02-07 15:06:19.745 5442 5496 I Corona : no field package.preload['plugin.google.iap.billing']
02-07 15:06:19.745 5442 5496 I Corona : no file '(null)/plugin/google/iap/billing.lua'
02-07 15:06:19.745 5442 5496 I Corona : no file '(null)/plugin/google/iap/billing.lua'
02-07 15:06:19.745 5442 5496 I Corona : no file '/data/app/~~PQ2TGZzJbu42lMUBJNiDxA==/com.swiftscales.music.vvt-57HwDiDqg2vTqmo-chw5wQ==/lib/arm64/libplugin/google/iap/billing.so'
02-07 15:06:19.745 5442 5496 I Corona : no file './plugin/google/iap/billing.so'
02-07 15:06:19.745 5442 5496 I Corona : no file '(null)/plugin/google/iap/billing.so'
02-07 15:06:19.745 5442 5496 I Corona : no file '/data/app/~~PQ2TGZzJbu42lMUBJNiDxA==/com.swiftscales.music.vvt-57HwDiDqg2vTqmo-chw5wQ==/lib/arm64/libplugin.so'
02-07 15:06:19.745 5442 5496 I Corona : no file './plugin.so'
02-07 15:06:19.745 5442 5496 I Corona : no file '(null)/plugin.so'
02-07 15:06:19.745 5442 5496 I Corona : no file '/data/app/~~PQ2TGZzJbu42lMUBJNiDxA==/com.swiftscales.music.vvt-57HwDiDqg2vTqmo-chw5wQ==/lib/arm64/libplugin.google.iap.billing.so'
02-07 15:06:19.745 5442 5496 I Corona : no file './plugin.google.iap.billing.so'
02-07 15:06:19.745 5442 5496 I Corona : no file '(null)/plugin.google.iap.billing.so'
02-07 15:06:19.745 5442 5496 I Corona : no Java class 'plugin.google.iap.billing.LuaLoader'
02-07 15:06:19.745 5442 5496 I Corona : no global loaded symbol 'luaopen_plugin_google_iap_bi
02-07 15:06:19.745 5442 5496 I Corona : ERROR: Runtime error
02-07 15:06:19.745 5442 5496 I Corona : module 'plugin.google.iap.billing' not found:resource (plugin.google.iap.billing.lu) does not exist in archive
02-07 15:06:19.745 5442 5496 I Corona : no field package.preload['plugin.google.iap.billing']
02-07 15:06:19.745 5442 5496 I Corona : no file '(null)/plugin/google/iap/billing.lua'
02-07 15:06:19.745 5442 5496 I Corona : no file '(null)/plugin/google/iap/billing.lua'
02-07 15:06:19.745 5442 5496 I Corona : no file '/data/app/~~PQ2TGZzJbu42lMUBJNiDxA==/com.swiftscales.music.vvt-57HwDiDqg2vTqmo-chw5wQ==/lib/arm64/libplugin/google/iap/billing.so'
02-07 15:06:19.745 5442 5496 I Corona : no file './plugin/google/iap/billing.so'
02-07 15:06:19.745 5442 5496 I Corona : no file '(null)/plugin/google/iap/billing.so'
02-07 15:06:19.745 5442 5496 I Corona : no file '/data/app/~~PQ2TGZzJbu42lMUBJNiDxA==/com.swiftscales.music.vvt-57HwDiDqg2vTqmo-chw5wQ==/lib/arm64/libplugin.so'
02-07 15:06:19.745 5442 5496 I Corona : no file './plugin.so'
02-07 15:06:19.745 5442 5496 I Corona : no file '(null)/plugin.so'
02-07 15:06:19.745 5442 5496 I Corona : no file '/data/app/~~PQ2TGZzJbu42lMUBJNiDxA==/com.swiftscales.music.vvt-57HwDiDqg2vTqmo-chw5wQ==/lib/arm64/libplugin.google.iap.billing.so'
02-07 15:06:19.745 5442 5496 I Corona : no file './plugin.google.iap.billing.so'
02-07 15:06:19.745 5442 5496 I Corona : no file '(null)/plugin.google.iap.billing.so'
02-07 15:06:19.745 5442 5496 I Corona : no Java class 'plugin.google.iap.billing.LuaLoader'
02-07 15:06:19.745 5442 5496 I Corona : no global loaded symbol 'luaopen_plugin_google_iap_billing'
02-07 15:06:19.745 5442 5496 I Corona : no zipped .so symbol at '/data/app/~~PQ2TGZzJbu42lMUBJNiDxA==/com.swiftscales.music.vvt-57HwDiDqg2vTqmo-chw5wQ==/base.apk!/lib/arm64-v8a/libplugin.google.iap.billing.so'
02-07 15:06:19.745 5442 5496 I Corona : stack traceback:
02-07 15:06:19.745 5442 5496 I Corona : [C]: ?
02-07 15:06:19.745 5442 5496 I Corona : [C]: in function 'require'
02-07 15:06:19.745 5442 5496 I Corona : ?: in function 'require'
02-07 15:06:19.745 5442 5496 I Corona : ?: in main chunk
02-07 15:08:27.020 7854 7912 V Corona : > Class.forName: network.LuaLoader
02-07 15:08:27.020 7854 7912 V Corona : < Class.forName: network.LuaLoader
02-07 15:08:27.020 7854 7912 V Corona : Loading via reflection: network.LuaLoader
Any help would be very much appreciated!