question

nukeprice avatar image
nukeprice asked

Help! NoClassDefFoundError

Hello. I don't know where I did wrong, but when I try to initilize the associate api like this: AssociatesAPI.initialize(new AssociatesAPI.Config("xxxxxxxxxxxxxxxx", this)); It crash and gave me this error 09-12 05:22:02.663: E/AndroidRuntime(719): java.lang.NoClassDefFoundError: com.amazon.device.associates.AssociatesAPI$Config There is no problem to build an apk. How come the Amazon associate library is not built into the apk? I don't understand. I already add the jar to the liberary. Thanks!
mobile associates
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

nukeprice avatar image
nukeprice answered
never mind. I figured it out.
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Sujoy@Amazon avatar image
Sujoy@Amazon answered
Hi Anthony, Please check the export check box of the MAA library in your IDE. You need to export it in to the apk. Thanks.
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.