module 'plugin_amazon_iap' not found

Hi, 

i got the error message when i tried to , 
 

 inApp.store = require "plugin.amazon.iap"

and I compiled my code using daily enterprise build 2013.1233

 

Runtime error

module ‘plugin_amazon_iap’ not found:resource (plugin_amazon_iap.lu) does not exist in archive

    no field package.preload[‘plugin_amazon_iap’]

    no file ‘…/Library/Application Support/Corona/Simulator/Plugins/plugin_amazon_iap.lua’

    no file ‘…/trunk/code/myProject/plugin_amazon_iap.lua’

    no file ‘/Volumes/CoronaSDK/CoronaSDK/Corona Simulator.app/Contents/Resources/plugin_amazon_iap.lua’

    no file ‘…/Library/Application Support/Corona/Simulator/Plugins/plugin_amazon_iap.dylib’

    no file ‘./plugin_amazon_iap.dylib’

    no file ‘/Volumes/CoronaSDK/CoronaSDK/Corona Simulator.app/Contents/Resources/plugin_amazon_iap.dylib’

Please help me on this.

Thanks,

Did you add it to your build.settings also?

Yes I added in build.settings

plugins =
{
– key is the name passed to Lua’s ‘require()’
[“plugin.amazon.iap”] =
{
– required
publisherId = “com.amazon”,
},
},

Hi contact130,

Can you please post your entire build.settings file? This looks correct as long as ‘plugins’  is inside of ‘settings’

Thanks for the reply,

I have attached the entire build.settings file.

ok, it seems like i have to move ‘plugins’ table out from ‘android’ … so it will be added directly to ‘settings’ ?

Hi contact130,

Yes, ‘plugins’ should be a child of ‘settings’, and NOT of ‘android’

Thanks :slight_smile: , it worked 

Did you add it to your build.settings also?

Yes I added in build.settings

plugins =
{
– key is the name passed to Lua’s ‘require()’
[“plugin.amazon.iap”] =
{
– required
publisherId = “com.amazon”,
},
},

Hi contact130,

Can you please post your entire build.settings file? This looks correct as long as ‘plugins’  is inside of ‘settings’

Thanks for the reply,

I have attached the entire build.settings file.

ok, it seems like i have to move ‘plugins’ table out from ‘android’ … so it will be added directly to ‘settings’ ?

Hi contact130,

Yes, ‘plugins’ should be a child of ‘settings’, and NOT of ‘android’

Thanks :slight_smile: , it worked