Could not load class 'plugin.amazon.iap.LuaLoader'

Any ideas?  I’ve rebuilt 3 times. I’ve also built with both the debug and prod keystores.  Do I need an Amazon ID somewhere or something?

c:\Users\clint\AppData\Local\Android\sdk\platform-tools\>adb logcat Corona:v \*:s --------- beginning of main --------- beginning of system I/Corona  ( 7316): http://52.91.103.188/api/user/login?token=ZbBRYsYqxMb7g194oASEogUqLw92&pin=111111&userLat=34.05263598&userLong=-84.62464291&v=1.26 V/Corona  ( 7316): \> Class.forName: plugin.amazon.iap.LuaLoader I/Corona  ( 7316): WARNING: Could not load class 'plugin.amazon.iap.LuaLoader' I/Corona  ( 7316): ERROR: Runtime error I/Corona  ( 7316): /Users/jenkins/slaveroot/workspace/Templates/label/android/subrepos/composer/composer.lua:1453: /Users/jenkins/slaveroot/workspace/Templates/label/android/platform/resources/init.lua:906: module 'plugin.amazon.iap' not found:resource (plugin.amazon.iap.lu) does not exist in archive I/Corona  ( 7316):      no field package.preload['plugin.amazon.iap'] I/Corona  ( 7316):      no file '/data/data/com.balloonknotgames.fartcommander/files/coronaResources/plugin/amazon/iap.lua' I/Corona  ( 7316):      no file '/data/app/com.balloonknotgames.fartcommander-1/lib/arm/libplugin/amazon/iap.so' I/Corona  ( 7316):      no file './plugin/amazon/iap.so' I/Corona  ( 7316):      no file '(null)/plugin/amazon/iap.so' I/Corona  ( 7316):      no file '/data/app/com.balloonknotgames.fartcommander-1/lib/arm/libplugin.so' I/Corona  ( 7316):      no file './plugin.so' I/Corona  ( 7316):      no file '(null)/plugin.so' I/Corona  ( 7316):      no file '/data/app/com.balloonknotgames.fartcommander-1/lib/arm/libplugin.amazon.iap.so' I/Corona  ( 7316):      no file './plugin.amazon.iap.so' I/Corona  ( 7316):      no file '(null)/plugin.amazon.iap.so' I/Corona  ( 7316): stack traceback: I/Corona  ( 7316):      [C]: in function 'error' I/Corona  ( 7316):      /Users/jenkins/slaveroot/workspace/Templates/label/android/subrepos/com I/Corona  ( 7316): Handling the unhandled error /Users/jenkins/slaveroot/workspace/Templates/label/android/subrepos/composer/composer.lua:1453: /Users/jenkins/slaveroot/workspace/Templates/label/android/platform/resources/init.lua:906: module 'plugin.amazon.iap' not found:resource (plugin.amazon.iap.lu) does not exist in archive I/Corona  ( 7316):      no field package.preload['plugin.amazon.iap'] I/Corona  ( 7316):      no file '/data/data/com.balloonknotgames.fartcommander/files/coronaResources/plugin/amazon/iap.lua' I/Corona  ( 7316):      no file '/data/app/com.balloonknotgames.fartcommander-1/lib/arm/libplugin/amazon/iap.so' I/Corona  ( 7316):      no file './plugin/amazon/iap.so' I/Corona  ( 7316):      no file '(null)/plugin/amazon/iap.so' I/Corona  ( 7316):      no file '/data/app/com.balloonknotgames.fartcommander-1/lib/arm/libplugin.so' I/Corona  ( 7316):      no file './plugin.so' I/Corona  ( 7316):      no file '(null)/plugin.so' I/Corona  ( 7316):      no file '/data/app/com.balloonknotgames.fartcommander-1/lib/arm/libplugin.amazon.iap.so' I/Corona  ( 7316):      no file './plugin.amazon.iap.so' I/Corona  ( 7316):      no file '(null)/plugin.amazon.iap.so' I/Corona  ( 7316): appODeal ad failed to load I/Corona  ( 7316): banner I/Corona  ( 7316): failed to load
  1. We really need more info.  What plugin is this?  Don’t assume everyone knows right away.  I could look this up, but it would be way cooler if you shared a link to the plugin docs in your original question.

  2. Please show a neat paste of your build.settings plugins section.

  3. When you build, what do you select as the ‘Target App Store’ on the build dialog?

  4. What version of Corona are you building with.

  5. What OS are you building under? Win 7, 8, 10?

When you run into a problem with a Corona feature and ask a question, a nice  minimum  set of info you should always provide is:

A. Target OS - Clear in this question already.

B. Corona Version

C. OS Type and  Version you built with.

D. Appropriate snippets of code (like build.settings --> plugins section in this case)

E. Other relevant data (like build target you chose this time)

F. Link to feature(s)’ docs that you are having trouble with.

G. Log dumps (within reason, not too long)

I know, it seems like I and others can glean this from your dump, but honestly I don’t want to read it (first) and I don’t think anyone else does either.

However, more importantly, when you follow a strict regimen while posting questions, you will often find the answer pops out as you write down the key points.  

i.e. Simply by looking at it from an outsider’s viewpoint and by trying to make it clear to us what you are doing, the answer and or source of the problem will become apparent.

I honestly don’t know how many times I’ve gone to ask a question, and as I was typing up my question, (laboring over it to make it clear) that boom!  The answer came to me.

While waiting for a response I took a quick look.

I assume you’re using this plugin: https://marketplace.coronalabs.com/plugin/amazon-iap

  • The docs for it are here: https://docs.coronalabs.com/plugin/amazon-iap-v2/

  • At a minimum your build.settings should look like this(plus whatever else you need):

    settings = { plugins = { [“plugin.amazon.iap”] = { publisherId = “com.coronalabs” }, }, }

  • When you build, be sure to select ‘Amazon’ as the target.

  • Be sure to build with a recent version of Corona.

Understood. Sorry for the lack of information.  I’m currently using Google IAP and in order to roll my app out to Amazon I want to implement Amazon IAP.   The best source of documentation I’ve found is here https://docs.coronalabs.com/plugin/amazon-iap-v2/init.html

Platform : SM-G900S / x64 / 10.0 / Intel® HD Graphics 630 / 4.5.0 - Build 22.20.16.4749 / 2017.3155 / en_US 

BUILD SETTINGS
 

settings = { plugins = { ["plugin.firebaseAuth"] = { publisherId = "tech.scotth" }, ["plugin.firebaseInvites"] = { publisherId = "tech.scotth", }, ["plugin.notifications.v2"] = { publisherId = "com.coronalabs" }, ["plugin.OneSignal"] = { publisherId = "com.onesignal", }, ["plugin.appodeal"] = { publisherId = "com.coronalabs" }, ["plugin.amazon.iap"] = { publisherId = "com.coronalabs" }, ["plugin.braintonik-dialog"] = { publisherId = "com.braintonik", }, ["plugin.volumeControl"] = { publisherId = "tech.scotth", supportedPlatforms = { android=true } }, ["plugin.bassBoost"] = { publisherId = "tech.scotth", }, ["plugin.facebook.v4a"] = { publisherId = "com.coronalabs" } }, android = { usesPermissions = { "android.permission.INTERNET", "android.permission.GET\_ACCOUNTS", "android.permission.ACCESS\_COARSE\_LOCATION", "android.permission.ACCESS\_FINE\_LOCATION", "android.permission.WAKE\_LOCK", "android.permission.MODIFY\_AUDIO\_SETTINGS", "android.permission.ACCESS\_NETWORK\_STATE", "android.permission.WRITE\_EXTERNAL\_STORAGE", "com.android.vending.BILLING" }, useGoogleServicesJson = true, intentFilters = { { actions = { "android.intent.action.VIEW" }, categories ={ "android.intent.category.DEFAULT", "android.intent.category.BROWSABLE", }, data = {scheme = "https", host = "balloonknotgames.com" }, }, }, googlePlayGamesAppId = "1:377426389920:android:cc6b49a205a38a00", facebookAppId = "127555964556252" }, }

That’s likely my issue.  I did’t choose Amazon as the target.  Thank you and sorry again for the presumptuous post.

No need to apologize man. 

I don’t want to come across as a jerk or in a confrontational way.  I’m trying to encourage you to do these things because I honestly think it will help you .

Cheers and I hope that works for you.

  1. We really need more info.  What plugin is this?  Don’t assume everyone knows right away.  I could look this up, but it would be way cooler if you shared a link to the plugin docs in your original question.

  2. Please show a neat paste of your build.settings plugins section.

  3. When you build, what do you select as the ‘Target App Store’ on the build dialog?

  4. What version of Corona are you building with.

  5. What OS are you building under? Win 7, 8, 10?

When you run into a problem with a Corona feature and ask a question, a nice  minimum  set of info you should always provide is:

A. Target OS - Clear in this question already.

B. Corona Version

C. OS Type and  Version you built with.

D. Appropriate snippets of code (like build.settings --> plugins section in this case)

E. Other relevant data (like build target you chose this time)

F. Link to feature(s)’ docs that you are having trouble with.

G. Log dumps (within reason, not too long)

I know, it seems like I and others can glean this from your dump, but honestly I don’t want to read it (first) and I don’t think anyone else does either.

However, more importantly, when you follow a strict regimen while posting questions, you will often find the answer pops out as you write down the key points.  

i.e. Simply by looking at it from an outsider’s viewpoint and by trying to make it clear to us what you are doing, the answer and or source of the problem will become apparent.

I honestly don’t know how many times I’ve gone to ask a question, and as I was typing up my question, (laboring over it to make it clear) that boom!  The answer came to me.

While waiting for a response I took a quick look.

I assume you’re using this plugin: https://marketplace.coronalabs.com/plugin/amazon-iap

  • The docs for it are here: https://docs.coronalabs.com/plugin/amazon-iap-v2/

  • At a minimum your build.settings should look like this(plus whatever else you need):

    settings = { plugins = { [“plugin.amazon.iap”] = { publisherId = “com.coronalabs” }, }, }

  • When you build, be sure to select ‘Amazon’ as the target.

  • Be sure to build with a recent version of Corona.

Understood. Sorry for the lack of information.  I’m currently using Google IAP and in order to roll my app out to Amazon I want to implement Amazon IAP.   The best source of documentation I’ve found is here https://docs.coronalabs.com/plugin/amazon-iap-v2/init.html

Platform : SM-G900S / x64 / 10.0 / Intel® HD Graphics 630 / 4.5.0 - Build 22.20.16.4749 / 2017.3155 / en_US 

BUILD SETTINGS
 

settings = { plugins = { ["plugin.firebaseAuth"] = { publisherId = "tech.scotth" }, ["plugin.firebaseInvites"] = { publisherId = "tech.scotth", }, ["plugin.notifications.v2"] = { publisherId = "com.coronalabs" }, ["plugin.OneSignal"] = { publisherId = "com.onesignal", }, ["plugin.appodeal"] = { publisherId = "com.coronalabs" }, ["plugin.amazon.iap"] = { publisherId = "com.coronalabs" }, ["plugin.braintonik-dialog"] = { publisherId = "com.braintonik", }, ["plugin.volumeControl"] = { publisherId = "tech.scotth", supportedPlatforms = { android=true } }, ["plugin.bassBoost"] = { publisherId = "tech.scotth", }, ["plugin.facebook.v4a"] = { publisherId = "com.coronalabs" } }, android = { usesPermissions = { "android.permission.INTERNET", "android.permission.GET\_ACCOUNTS", "android.permission.ACCESS\_COARSE\_LOCATION", "android.permission.ACCESS\_FINE\_LOCATION", "android.permission.WAKE\_LOCK", "android.permission.MODIFY\_AUDIO\_SETTINGS", "android.permission.ACCESS\_NETWORK\_STATE", "android.permission.WRITE\_EXTERNAL\_STORAGE", "com.android.vending.BILLING" }, useGoogleServicesJson = true, intentFilters = { { actions = { "android.intent.action.VIEW" }, categories ={ "android.intent.category.DEFAULT", "android.intent.category.BROWSABLE", }, data = {scheme = "https", host = "balloonknotgames.com" }, }, }, googlePlayGamesAppId = "1:377426389920:android:cc6b49a205a38a00", facebookAppId = "127555964556252" }, }

That’s likely my issue.  I did’t choose Amazon as the target.  Thank you and sorry again for the presumptuous post.

No need to apologize man. 

I don’t want to come across as a jerk or in a confrontational way.  I’m trying to encourage you to do these things because I honestly think it will help you .

Cheers and I hope that works for you.