question

newuser-94224243-d73d-44a4-867a-b7507db26cef avatar image
newuser-94224243-d73d-44a4-867a-b7507db26cef asked ·

An error occurs on trying to purchase an IAP item as able to purchase IAP with UK/DE accounts but unable to purchase IAP with USA account

proguard-rules.pro have following rules


-optimizations !code/allocation/variable
-optimizationpasses 1


-dontwarn com.amazon.**
 -keep class com.amazon.** {*;}
 -keepattributes *Annotation*
 -keep public class * extends com.amazon.device.messaging.ADMMessageReceiver
 -keep public class * extends com.amazon.device.messaging.ADMMessageHandlerBase
 -keepclassmembers public class * extends com.amazon.device.messaging.ADMMessageReceiver { *; }
 -keepclassmembers public class * extends com.amazon.device.messaging.ADMMessageHandlerBase { *; }


build.gradle have following lines


maven { url "http://storage.googleapis.com/r8-releases/raw" }
classpath 'com.android.tools:r8:1.6.42'  // Must be before the Gradle Plugin for Android.


release {

            debuggable false
            minifyEnabled true
            shrinkResources true
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'

/*            buildConfigField "boolean", "IS_DEBUG_ABLE", 'false'*/

            signingConfig signingConfigs.release    // Add this line

        }


Application failed the Test Result


An error occurs on trying to purchase an IAP item"" error message

Expected Result: IAP items should get purchased without any error message. NOTE:able to purchase IAP with UK/DE accounts but unable to purchase IAP with USA account

iapamazon appstore
1 comment
10 |2000 characters needed characters left characters exceeded

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

Have you found a solution? Our app suddenly started to have this problem. R8 is disabled for the app:

android.enableR8=false


Everything works fine on our testing devices for both the debug version and the release version. The report says the error occurs for Fire TV devices. The message is generated by Amazon. I suspect the purchase is successful and response.getRequestStatus() returns SUCCESSFUL.

0 Likes 0 ·

0 Answers