Hey guys,
after almost 1 year i got solar2d again to continue with my game.
For that i loaded my old solar2d project but i immediately get this error when i try to start it in the corona simulator:
17:49:22.848 ERROR: Runtime error
17:49:22.848 D:\a\corona\corona\platform\resources\init.lua:964: module ‘plugin_googleSignIn’ not found:
17:49:22.848 no field package.preload[‘plugin_googleSignIn’]
17:49:22.848 no file ‘C:\Users\Antek\AppData\Roaming\Corona Labs\Corona Simulator\Plugins\plugin_googleSignIn.lua’
17:49:22.848 no file ‘C:\Users\Antek\Documents\Corona Projects\test3\plugin_googleSignIn.lua’
17:49:22.848 no file ‘C:\Program Files (x86)\Corona Labs\Corona\Resources\plugin_googleSignIn.lua’
17:49:22.848 no file ‘.\plugin_googleSignIn.lua’
17:49:22.848 no file ‘C:\Program Files (x86)\Corona Labs\Corona\lua\plugin_googleSignIn.lua’
17:49:22.848 no file ‘C:\Program Files (x86)\Corona Labs\Corona\lua\plugin_googleSignIn\init.lua’
17:49:22.848 no file ‘C:\Program Files (x86)\Corona Labs\Corona\plugin_googleSignIn.lua’
17:49:22.848 no file ‘C:\Program Files (x86)\Corona Labs\Corona\plugin_googleSignIn\init.lua’
17:49:22.848 no file ‘C:\Program Files (x86)\Lua\5.1\lua\plugin_googleSignIn.luac’
17:49:22.848 no file ‘C:\Users\Antek\AppData\Roaming\Corona Labs\Corona Simulator\Plugins\plugin_googleSignIn.dll’
17:49:22.848 no file ‘.\plugin_googleSignIn.dll’
17:49:22.848 no file ‘C:\Program Files (x86)\Corona Labs\Corona\Resources\plugin_googleSignIn.dll’
17:49:22.848 no file ‘.\plugin_googleSignIn.dll’
17:49:22.848 no file ‘C:\Program Files (x86)\Corona Labs\Corona\plugin_googleSignIn.dll’
17:49:22.848 no file ‘C:\Program Files (x86)\Corona Labs\Corona\loadall.dll’
17:49:22.848 no file ‘C:\Users\Antek\AppData\Roaming\Corona Labs\Corona Simulator\Plugins\plugin_googleSignIn.dll’
17:49:22.848 no file ‘.\plugin_googleSignIn.dll’
17:49:22.848 no file ‘C:\Program Files (x86)\Corona Labs\Corona\Resources\plugin_googleSignIn.dll’
17:49:22.848 no file ‘.\plugin_googleSignIn.dll’
17:49:22.848 no file ‘C:\Program Files (x86)\Corona Labs\Corona\plugin_googleSignIn.dll’
17:49:22.848 no file ‘C:\Program Files (x86)\Corona Labs\Corona\loadall.dll’
17:49:22.848 stack traceback:
17:49:22.848 [C]: in function ‘require’
17:49:22.848 D:\a\corona\corona\platform\resources\init.lua:964: in function ‘require’
17:49:22.848 C:\Users\Antek\Documents\Corona Projects\test3\main.lua:9: in main chunk
my main.lua has this code on line 9:
local googleSignIn = require(“plugin.googleSignIn”)
Here my build.settings:
–
– For more information on build.settings, see the Project Build Settings guide at:
– Solar2D Documentation — Developer Guides | Building/Distribution
settings =
{
splashScreen =
{
enable = true,
image = “splash1.png”
},
orientation =
{
-- Supported values for orientation:
-- portrait, portraitUpsideDown, landscapeLeft, landscapeRight
default = "landscapeLeft",
supported = { "landscapeRight", "landscapeLeft" }
},
--
-- Android section
--
android =
{
googlePlayGamesAppId = "43xxx",
-- uncomment useGoogleServicesJson when firebaseDatabase is needed
useGoogleServicesJson = true,
minSdkVersion = "19",
applicationChildElements =
{
[[
<meta-data android:name="com.google.android.gms.ads.APPLICATION_ID"
android:value="ca-app-pub-xxx"/>
]],
},
usesPermissions =
{
"android.permission.INTERNET",
"android.permission.ACCESS_NETWORK_STATE",
"android.permission.ACCESS_COARSE_LOCATION",
"android.permission.WRITE_EXTERNAL_STORAGE",
"com.android.vending.CHECK_LICENSE",
"android.permission.VIBRATE",
"com.google.android.gms.permission.AD_ID",
"android.permission.GET_ACCOUNTS",
"android.permission.RECEIVE_BOOT_COMPLETED",
},
},
--
-- iOS section
--
iphone =
{
xcassets = "Images.xcassets",
plist =
{
UIStatusBarHidden = false,
UILaunchStoryboardName = "LaunchScreen",
-- GADApplicationIdentifier = "[YOUR_ADMOB_APP_ID]",
-- SKAdNetworkItems = {
-- {
-- SKAdNetworkIdentifier = "cstr6suwn9.skadnetwork",
-- },
-- },
},
},
--
-- Plugins section
--
plugins =
{
["plugin.googleSignIn"] =
{
publisherId="tech.scotth",
marketplaceId = "g0ta1l",
},
["plugin.firebaseDatabase"] =
{
publisherId="tech.scotth",
marketplaceId = "g0ta1l",
},
["plugin.notifications.v2"] =
{
publisherId = "com.coronalabs"
},
["plugin.admob"] =
{
publisherId = "com.coronalabs"
},
-- See: http://docs.coronalabs.com/plugin/att
},
--
-- Project section
--
excludeFiles =
{
-- Exclude unnecessary files for each platform
all = { "Icon.png", "Icon-*dpi.png", "Images.xcassets", },
android = { "LaunchScreen.storyboardc", },
},
}
Every example project is working fine. But as soon as i require one of tech.scotth plugins, i get this error. The other 2 plugins (plugin.notifications.v2 and plugin.admob) are working fine.
I have read almost every post that had simular problems but no fixes are working for me.
I also did tried this solution: Solar2D build error - #3 by redbol
But its not working for me.
I have tried almost everythink but without success…
Does anyone has an idea what could be the Problem?
Also my Solar2D Version is: 2024.3713
Br,
Antek