runtime error while initializing ads

so guys error is NOT in my code i get some kind of jenkins error on my android phone  i tried everything so here is build settings:

  1. settings =
  2. {
  3. orientation=
  4. {
  5. default=“portrait”,
  6. su
  7. }
  8. plugins =
  9. {
  10. [“plugin.coronaAds”] =
  11. {
  12. publisherId = “com.coronalabs”,
  13. supportedPlatforms = { iphone=true, android=true }
  14. },
  15.  
  16. [“plugin.google.play.services”] =
  17. {
  18. publisherId = “com.coronalabs”,
  19. supportedPlatforms = { android=true }
  20. },
  21.  
  22. [“shared.android.support.v4”] =
  23. {
  24. publisherId = “com.coronalabs”,
  25. supportedPlatforms = { android=true }
  26. },
  27.  
  28. [“plugin.chartboost”] =
  29. {
  30. publisherId = “com.coronalabs”,
  31. supportedPlatforms = { iphone=true, android=true }
  32. },
  33.  
  34. [“plugin.adcolony”] =
  35. {
  36. publisherId = “com.coronalabs”,
  37. supportedPlatforms = { iphone=true, android=true }
  38. }
  39. },
  40. – If building for iOS, add these three entries to the “plist” table
  41. iphone =
  42. {
  43. plist =
  44. {
  45. NSAppTransportSecurity = { NSAllowsArbitraryLoads=true },
  46. NSLocationAlwaysUsageDescription = { “” },
  47. NSLocationWhenInUseUsageDescription = { “” },
  48. },
  49. },
  50. }

and here is my code:

  1. – Corona Ads
  2. local coronaAds = require( “plugin.coronaAds” )
  3. – Substitute your own placement IDs when generated
  4. local bannerPlacement = “top-banner-320x50”
  5. local interstitialPlacement = “interstitial-1”
  6.  
  7. – Corona Ads listener function
  8. local function adListener( event )
  9.  
  10. – Successful initialization of Corona Ads
  11. if ( event.phase == “init” ) then
  12. – Show an ad
  13. coronaAds.show( bannerPlacement, false )
  14. –coronaAds.show( interstitialPlacement, true )
  15. end
  16. end
  17.  
  18. – Initialize Corona Ads (substitute your own API key when generated)
  19. coronaAds.init( “5223c2c3-cf81-4c43-ae41-2d4ed16552bc”, adListener )
  20. – Chartboost
  21. local chartboost = require( “plugin.chartboost” )
  22.  
  23. – Chartboost listener function
  24. local function cbListener( event )
  25. if ( event.phase == “init” ) then – Successful initialization
  26. chartboost.load( “interstitial” )
  27. elseif ( event.phase == “loaded” ) then
  28. if ( event.type == “interstitial” ) then
  29. chartboost.show( “interstitial” )
  30. end
  31. end
  32. end
  33.  
  34. – Initialize the Chartboost plugin with your Corona Ads API key
  35. chartboost.init( cbListener, { apiKey=“5223c2c3-cf81-4c43-ae41-2d4ed16552bc”, appOrientation=“portrait” } )
  36. – AdColony
  37. local adcolony = require( “plugin.adcolony” )
  38.  
  39. – AdColony listener function
  40. local function acListener( event )
  41. if ( event.phase == “init” ) then – Successful initialization
  42. print( event.provider )
  43. end
  44. end
  45.  
  46. – Initialize the AdColony plugin with your Corona Ads API key
  47. adcolony.init( acListener, { apiKey=“5223c2c3-cf81-4c43-ae41-2d4ed16552bc” } )
  48.  
  49. – Sometime later, show an ad
  50. if ( adcolony.isLoaded( “interstitial” ) ) then
  51. adcolony.show( “interstitial” )
  52. end
  53.  
  54.  
  55.  
  56. local widget = require(“widget”)
  57. local pizzeria = display.newImage(“background.png”)
  58. pizzeria.x=160
  59. pizzeria.y=230
  60. pizzeria:scale(1,1)
  61. local pizzas=0
  62. local chefs=0
  63. local cookers=0
  64. local robot=0
  65. local autostove=0
  66. local musicswitch = 1
  67. local backgroundMusic = audio.loadStream(“b.mp3”)
  68. local backgroundMusicChannel = audio.play( backgroundMusic, { channel=1, loops=-1, fadein=5000 } )
  69. local textmaker = 0
  70. local robotcost=display.newText(“cost-70”,150,300,display.contentWidth*0.7,display.contentHeight*0.7,native.systemFont,16)
  71. robotcost:setFillColor(10,5,0)
  72.  
  73. local chefcost=display.newText(“cost-10”,150,350,display.contentWidth*0.7,display.contentHeight*0.7,native.systemFont,16)
  74. chefcost:setFillColor(0,0,0)
  75.  
  76. local cookercost=display.newText(“cost-25”,300,350,display.contentWidth*0.7,display.contentHeight*0.7,native.systemFont,16)
  77. cookercost:setFillColor(10,5,0)
  78.  
  79. local autostovecost=display.newText(“cost-250”,220,440,display.contentWidth*0.7,display.contentHeight*0.7,native.systemFont,16)
  80. autostovecost:setFillColor(10,5,0)
  81.  
  82. local pizzatext = display.newText(“pizzas:”, 100, 200, display.contentWidth*0.6, display.contentHeight * 0.7, native.systemFont, 16)
  83. pizzatext:setFillColor( 0, 0, 0)
  84.  
  85. local pizzacount = display.newText(pizzas,165,200,display.contentWidth*0.7,display.contentHeight*0.7,native.systemFont,16)
  86. pizzacount:setFillColor(10,5,0)
  87.  
  88. local chefstext = display.newText(“chefs:”,320,200,display.contentWidth*0.7,display.contentHeight*0.7,native.systemFont,16)
  89. chefstext:setFillColor(0,10,10)
  90.  
  91. local chefscount = display.newText(chefs,363,200,display.contentWidth*0.7,display.contentHeight*0.7,native.systemFont,16)
  92. chefscount:setFillColor(10,5,0)
  93.  
  94. local cooktext = display.newText(“coookers:”,320,230,display.contentWidth*0.7,display.contentHeight*0.7,native.systemFont,16)
  95. cooktext:setFillColor(10,5,0)
  96.  
  97. local cookcount = display.newText(cookers,390,230,display.contentWidth*0.7,display.contentHeight*0.7,native.systemFont,16)
  98. cookcount:setFillColor(0,0,0)
  99.  
  100. local robottext = display.newText(“robot:”,320,260,display.contentWidth*0.7,display.contentHeight*0.7,native.systemFont,16)
  101. robottext:setFillColor(0,10,10)
  102.  
  103. local robotcount = display.newText(robot,363,260,display.contentWidth*0.7,display.contentHeight*0.7,native.systemFont,16)
  104. robotcount:setFillColor(10,5,0)
  105.  
  106. local autostovetext = display.newText(“autostove:”,320,290,display.contentWidth*0.7,display.contentHeight*0.7,native.systemFont,16)
  107. autostovetext:setFillColor(0,0,0)
  108.  
  109. local autostovecount = display.newText(autostove,395,290,display.contentWidth*0.7,display.contentHeight*0.7,native.systemFont,16)
  110. autostovecount:setFillColor(10,5,0)
  111.  
  112. local objective = display.newText(“Reach 1000000000 pizzas”,400,100)
  113.  
  114. local function makeChefPizza()
  115. pizzas=pizzas+chefs+cookers*2+robot*3+4*autostove
  116. pizzacount.text=pizzas
  117. end
  118.  
  119. local function pizzamaker( event )
  120. if (pizzas>=10000000000) then
  121. winscreen=display.newImage(“youwin.jpeg”)
  122. winscreen:translate(150,200)
  123. winscreen:scale(1.5,3)
  124. end
  125. if ( “ended” == event.phase ) then
  126. pizzas=pizzas+1
  127. pizzacount.text=pizzas
  128. end
  129. end
  130.  
  131. local function addchef( event )
  132.     if(“ended” == event.phase) then
  133. if(pizzas>=10) then
  134. chefs=chefs+1
  135. chefscount.text=chefs
  136. pizzas=pizzas-10
  137. pizzacount.text=pizzas
  138. end
  139. end
  140. end
  141. local function addcooker( event )
  142.     if(“ended”== event.phase) then
  143. if(pizzas>=25) then
  144. cookers=cookers+1
  145. cookcount.text=cookers
  146. pizzas=pizzas-25
  147. pizzacount.text=pizzas
  148. end
  149. end
  150. end
  151. local function addrobot( event )
  152. if(“ended”==event.phase) then
  153. if(pizzas>=70) then
  154. robot=robot+1
  155. robotcount.text=robot
  156. pizzas=pizzas-70
  157. pizzacount.text=pizzas
  158. end
  159. end
  160. end
  161. local function addautostove( event )
  162. if(“ended”==event.phase) then
  163. if(pizzas>=250) then
  164. autostove=autostove+1
  165. autostovecount.text=autostove
  166. pizzas=pizzas-250
  167. pizzacount.text=pizzas
  168. end
  169. end
  170. end
  171. local pizzamaker = widget.newButton
  172. {
  173. left = 200,
  174. top = 400,
  175. defaultFile=“button.jpeg”,
  176. overFile = “button.jpeg”,
  177. label = “Make Pizza”,
  178. height = 50,
  179. width= 100,
  180. onEvent =pizzamaker
  181. }
  182. local addchef = widget.newButton
  183. {
  184. left = 60,
  185. top = 200,
  186. defaultFile=“pizzachef.png”,
  187. overFile=“pizzachef.png”,
  188. height = 70,
  189. width = 70,
  190. onEvent = addchef
  191. }
  192. local addcooker = widget.newButton
  193. {
  194. left = 150,
  195. top = 200,
  196. defaultFile=“pizzacooker.jpeg”,
  197. overFile=“pizzacooker.jpeg”,
  198. height=70,
  199. width=70,
  200. onEvent=addcooker
  201. }
  202. local addrobot = widget.newButton
  203. {
  204. left = 100,
  205. top = 100,
  206. defaultFile=“robot.png”,
  207. overFile=“robot.png”,
  208. height=70,
  209. width=70,
  210. onEvent=addrobot
  211. }
  212. local addautostove = widget.newButton
  213. {
  214. left = 100,
  215. top = 300,
  216. defaultFile=“autostove.jpg”,
  217. overFile=“autostove.jpg”,
  218. height=70,
  219. width=100,
  220. onEvent=addautostove
  221. }
  222. timer.performWithDelay(1000, makeChefPizza, -1)

and here is the error

:

02:35:57 I Corona : /Users/jenkins/slaveroot/workspace/Templates/label/android/platform/resources/init.lua:853: module 'plugin.coronaAds' not found:resource (plugin.coronaAds.lu) does not exist in archive 02:35:57 I Corona : no field package.preload['plugin.coronaAds'] 02:35:57 I Corona : no file '(null)/plugin/coronaAds.lua' 02:35:57 I Corona : no file '(null)/plugin/coronaAds.lua' 02:35:57 I Corona : no file '/data/app/com.gmail.davitzuroshvili.pizza\_tycoon-1/lib/arm/libplugin/coronaAds.so' 02:35:57 I Corona : no file './plugin/coronaAds.so' 02:35:57 I Corona : no file '(null)/plugin/coronaAds.so' 02:35:57 I Corona : no file '/data/app/com.gmail.davitzuroshvili.pizza\_tycoon-1/lib/arm/libplugin.so' 02:35:57 I Corona : no file './plugin.so' 02:35:57 I Corona : no file '(null)/plugin.so' 02:35:57 I Corona : no file '/data/app/com.gmail.davitzuroshvili.pizza\_tycoon-1/lib/arm/libplugin.coronaAds.so' 02:35:57 I Corona : no file './plugin.coronaAds.so' 02:35:57 I Corona : no file '(null)/plugin.coronaAds.so' 02:35:57 I Corona : stack traceback: 02:35:57 I Corona : [C]: in function 'require' 02:35:57 I Corona : /Users/jenkins/slaveroot/workspace/Templates/label/android/platform/resources/init.lua:853: in function 'require' 02:35:57 I Corona : ?: in main chunk

gusy please help me

This is a duplicate post. It’s always best to bump a post you’re looking for an answer on rather than starting a new post. If any one wants to respond please do so here:

https://forums.coronalabs.com/topic/65425-corona-ads-error-on-android/

Thanks

Rob

This is a duplicate post. It’s always best to bump a post you’re looking for an answer on rather than starting a new post. If any one wants to respond please do so here:

https://forums.coronalabs.com/topic/65425-corona-ads-error-on-android/

Thanks

Rob