[Resolved] Appodeal 2.7.4 + Android = Error

The Appodeal plugin is not download automatically.
I removed the folders:

C: \ Users \ Admin \ AppData \ Roaming \ Corona Labs
C: \ Users \ Admin \ AppData \ Roaming \ Solar2DPlugins

And Solar2D no longer loads the Appodeal plugin.

I get an error:

14:24:41.684 Copyright © 2009-2020 C o r o n a L a b s I n c .
14:24:41.684 Version: 3.0.0
14:24:41.684 Build: 2020.3622
14:24:41.684 Platform: Custom / x64 / 10.0 / Radeon RX 580 Series / 4.6.14736 Compatibility Profile Context 20.9.2 27.20.12031.1000 / 2020.3622 / ru_RU | RU | ru_RU | ru
14:24:41.684 Loading project from: D:\WORK\Project\Ed
14:24:41.684 Project sandbox folder: C:\Users\Narkoz\AppData\Local\Corona Labs\Corona Simulator\Sandbox\ed-258F1B8B10D769905980D1679F36F521\Documents
14:24:46.902 WARNING: runtime error while executing plugin locator Solar2d Marketplace Directory: D:\a\corona\corona\platform\resources\CoronaBuilderPluginCollector.lua:250: bad argument #1 to ‘pairs’ (table expected, got nil)
14:24:49.183 ERROR: Runtime error
14:24:49.183 D:\a\corona\corona\platform\resources\init.lua:931: module ‘plugin_appodeal’ not found:
14:24:49.183 no field package.preload[‘plugin_appodeal’]
14:24:49.183 no file ‘C:\Users\Narkoz\AppData\Roaming\Corona Labs\Corona Simulator\Plugins\plugin_appodeal.lua’
14:24:49.183 no file ‘D:\WORK\Project\Ed\plugin_appodeal.lua’
14:24:49.183 no file ‘C:\Program Files (x86)\Corona Labs\Corona\Resources\plugin_appodeal.lua’
14:24:49.183 no file ‘.\plugin_appodeal.lua’
14:24:49.183 no file ‘C:\Program Files (x86)\Corona Labs\Corona\lua\plugin_appodeal.lua’
14:24:49.183 no file ‘C:\Program Files (x86)\Corona Labs\Corona\lua\plugin_appodeal\init.lua’
14:24:49.183 no file ‘C:\Program Files (x86)\Corona Labs\Corona\plugin_appodeal.lua’
14:24:49.183 no file ‘C:\Program Files (x86)\Corona Labs\Corona\plugin_appodeal\init.lua’
14:24:49.183 no file ‘C:\Users\Narkoz\AppData\Roaming\Corona Labs\Corona Simulator\Plugins\plugin_appodeal.dll’
14:24:49.183 no file ‘.\plugin_appodeal.dll’
14:24:49.183 no file ‘C:\Program Files (x86)\Corona Labs\Corona\Resources\plugin_appodeal.dll’
14:24:49.183 no file ‘.\plugin_appodeal.dll’
14:24:49.183 no file ‘C:\Program Files (x86)\Corona Labs\Corona\plugin_appodeal.dll’
14:24:49.183 no file ‘C:\Program Files (x86)\Corona Labs\Corona\loadall.dll’
14:24:49.183 no file ‘C:\Users\Narkoz\AppData\Roaming\Corona Labs\Corona Simulator\Plugins\plugin_appodeal.dll’
14:24:49.183 no file ‘.\plugin_appodeal.dll’
14:24:49.183 no file ‘C:\Program Files (x86)\Corona Labs\Corona\Resources\plugin_appodeal.dll’
14:24:49.183 no file ‘.\plugin_appodeal.dll’
14:24:49.183 no file ‘C:\Program Files (x86)\Corona Labs\Corona\plugin_appodeal.dll’
14:24:49.183 no file ‘C:\Program Files (x86)\Corona Labs\Corona\loadall.dll’
14:24:49.183 stack traceback:
14:24:49.183 [C]: in function ‘require’
14:24:49.183 D:\a\corona\corona\platform\resources\init.lua:931: in function ‘require’
14:24:49.183 D:\WORK\Project\Ed\libADS.lua:16: in main chunk
14:24:49.183 [C]: in function ‘require’
14:24:49.183 D:\a\corona\corona\platform\resources\init.lua:931: in function ‘require’
14:24:49.183 D:\WORK\Project\Ed\main.lua:266: in main chunk

My build.settings:

plugins =
{
[“plugin.google.iap.billing”] = { publisherId = “com.coronalabs” },
[“plugin.pasteboard”] = { publisherId = “com.coronalabs” },
[“plugin.notifications”] = { publisherId = “com.coronalabs” },
[“plugin.utf8”] = { publisherId = “com.coronalabs” },
[“plugin.openssl”] = { publisherId = “com.coronalabs” },
[“plugin.animation”] = { publisherId = “com.coronalabs” },
[“plugin.mailgun-sender”] = { publisherId = “com.develephant” },

  ["plugin.googleSignIn"] =
  {
  	publisherId = "tech.scotth",
  	marketplaceId = "faomn6",
  },

  ---- ADS START ----
    ["plugin.appodeal"] =
  {
  	publisherId = "com.cabagomez",
  	supportedPlatforms = {
  		android = { url="https://www.solar2dplugins.com/download/appodeal-274-ios-14/XXX/b73954f366b30160868b6d57b9fbbbb92d56400d-android.tar.gz" },

  		iphone = false,
  		["iphone-sim"] = false,

  		macos = false,
  		["mac-sim"] = false,

  		win32 = false,
  		["win32-sim"] = false,

  		linux = false,
  		["linux-sim"] = false,
  	},
  },
  ["plugin.appodealAdaptersA"] =
  {
  	publisherId = "com.cabagomez",
  	supportedPlatforms = {
  		android = { url="https://www.solar2dplugins.com/download/appodeal-274---adapters-a/XXX/0e464ddf921a7611d964be5252ce3a2db75d9d90-android.tar.gz" },

  		iphone = false,
  		["iphone-sim"] = false,

  		macos = false,
  		["mac-sim"] = false,

  		win32 = false,
  		["win32-sim"] = false,

  		linux = false,
  		["linux-sim"] = false,
  	},
  },
  ["plugin.appodealAdaptersB"] =
  {
  	publisherId = "com.cabagomez",
  	supportedPlatforms = {
  		android = { url="https://www.solar2dplugins.com/download/appodeal-274---adapters-b/XXX/e8530e209016d64ce9f7c7a717fd384472c1fed2-android.tar.gz" },

  		iphone = false,
  		["iphone-sim"] = false,

  		macos = false,
  		["mac-sim"] = false,

  		win32 = false,
  		["win32-sim"] = false,

  		linux = false,
  		["linux-sim"] = false,
  	},
  },
  ---- ADS FINISH ----

},

Everything worked yesterday.
Doesn’t work today.

Help! I need to check the environment if the environment == “android”, and only then make a call to require (“plugin.appodeal”) ???

The plugin has never worked on the simulator. You have to do exactly what you mentioned or what I do. If env ~= simulator then

1 Like

thnak you very much!

Hi! I’m also having this issue. I’m fairly new, so I have some newbish confusion.
I can run my code on my mac laptop, and it says the appodeal plugin is only supported on android and iOS, please build for device. However, the simulator runs with no ads. On my windows machine, it won’t run and I get similar error to Narkoz. Could you be a little bit more specific how I implement what you are suggesting? I tried

if (system.getInfo( “environment” ) ~= “simulator”) then
[“plugin.appodeal”] =
{

}
end

but it isn’t working. Do you have any suggestions?

“system” doesn’t work in build.settings. Your problem can be solved by using the condition:

if (system.getInfo (“environment”) ~ = “simulator”) then
– ex:
– require plugin
– init plugin
– show ads
end

in the application code itself.

I hope you are not using my old plugin. You should move onto the official plugin.