Android IAP beta purchases, crashes app after recipt is recieved.

Hey everyone,
Using build 3117.
With IAP badger.

Used the app specfic keystore/key alias when building

iOS IAP works in debug and in store.
Andrioid IAP products are setup in store and active.
Beta test version is up and a test user is setup.

User tries to purchase a product. Puts in user/pass. Gets receipt for product trying to purchase. Then when the device tries to go back to app it crashes.

Here is crash log from logcat. Any ideas?

 

08-08 14:29:39.755 22116 22116 E AndroidRuntime: FATAL EXCEPTION: main
08-08 14:29:39.755 22116 22116 E AndroidRuntime: Process: com.squrielman.birdzoo, PID: 22116
08-08 14:29:39.755 22116 22116 E AndroidRuntime: java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=1, result=-1, data=Intent { (has extras) }} to activity {com.squrielman.birdzoo/com.ansca.corona.CoronaActivity}: java.lang.IllegalArgumentException: java.security.spec.InvalidKeySpecException: java.lang.RuntimeException: error:0c074079:ASN.1 encoding routines:ASN1_get_object:HEADER_TOO_LONG
08-08 14:29:39.755 22116 22116 E AndroidRuntime:     at android.app.ActivityThread.deliverResults(ActivityThread.java:3779)
08-08 14:29:39.755 22116 22116 E AndroidRuntime:     at android.app.ActivityThread.handleSendResult(ActivityThread.java:3822)
08-08 14:29:39.755 22116 22116 E AndroidRuntime:     at android.app.ActivityThread.access$1400(ActivityThread.java:155)
08-08 14:29:39.755 22116 22116 E AndroidRuntime:     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1429)
08-08 14:29:39.755 22116 22116 E AndroidRuntime:     at android.os.Handler.dispatchMessage(Handler.java:102)
08-08 14:29:39.755 22116 22116 E AndroidRuntime:     at android.os.Looper.loop(Looper.java:152)
08-08 14:29:39.755 22116 22116 E AndroidRuntime:     at android.app.ActivityThread.main(ActivityThread.java:5497)
08-08 14:29:39.755 22116 22116 E AndroidRuntime:     at java.lang.reflect.Method.invoke(Native Method)
08-08 14:29:39.755 22116 22116 E AndroidRuntime:     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
08-08 14:29:39.755 22116 22116 E AndroidRuntime:     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
08-08 14:29:39.755 22116 22116 E AndroidRuntime: Caused by: java.lang.IllegalArgumentException: java.security.spec.InvalidKeySpecException: java.lang.RuntimeException: error:0c074079:ASN.1 encoding routines:ASN1_get_object:HEADER_TOO_LONG
08-08 14:29:39.755 22116 22116 E AndroidRuntime:     at plugin.google.iap.v3.util.Security.generatePublicKey(Security.java:109)
08-08 14:29:39.755 22116 22116 E AndroidRuntime:     at plugin.google.iap.v3.util.Security.verifyPurchase(Security.java:89)
08-08 14:29:39.755 22116 22116 E AndroidRuntime:     at plugin.google.iap.v3.util.IabHelper.handleActivityResult(IabHelper.java:500)
08-08 14:29:39.755 22116 22116 E AndroidRuntime:     at plugin.google.iap.v3.LuaLoader$5.onHandleActivityResult(LuaLoader.java:327)
08-08 14:29:39.755 22116 22116 E AndroidRuntime:     at com.ansca.corona.CoronaActivity.onActivityResult(CoronaActivity.java:3343)
08-08 14:29:39.755 22116 22116 E AndroidRuntime:     at android.app.Activity.dispatchActivityResult(Activity.java:6498)
08-08 14:29:39.755 22116 22116 E AndroidRuntime:     at android.app.ActivityThread.deliverResults(ActivityThread.java:3775)
08-08 14:29:39.755 22116 22116 E AndroidRuntime:     … 9 more
08-08 14:29:39.755 22116 22116 E AndroidRuntime: Caused by: java.security.spec.InvalidKeySpecException: java.lang.RuntimeException: error:0c074079:ASN.1 encoding routines:ASN1_get_object:HEADER_TOO_LONG
08-08 14:29:39.755 22116 22116 E AndroidRuntime:     at com.android.org.conscrypt.OpenSSLKey.getPublicKey(OpenSSLKey.java:250)
08-08 14:29:39.755 22116 22116 E AndroidRuntime:     at com.android.org.conscrypt.OpenSSLRSAKeyFactory.engineGeneratePublic(OpenSSLRSAKeyFactory.java:47)
08-08 14:29:39.755 22116 22116 E AndroidRuntime:     at java.security.KeyFactory.generatePublic(KeyFactory.java:172)
08-08 14:29:39.755 22116 22116 E AndroidRuntime:     at plugin.google.iap.v3.util.Security.generatePublicKey(Security.java:104)
08-08 14:29:39.755 22116 22116 E AndroidRuntime:     … 15 more
08-08 14:29:39.755 22116 22116 E AndroidRuntime: Caused by: java.lang.RuntimeException: error:0c074079:ASN.1 encoding routines:ASN1_get_object:HEADER_TOO_LONG
08-08 14:29:39.755 22116 22116 E AndroidRuntime:     at com.android.org.conscrypt.NativeCrypto.d2i_PUBKEY(Native Method)
08-08 14:29:39.755 22116 22116 E AndroidRuntime:     at com.android.org.conscrypt.OpenSSLKey.getPublicKey(OpenSSLKey.java:248)
08-08 14:29:39.755 22116 22116 E AndroidRuntime:     … 18 more
08-08 14:29:39.760 22116 22116 D AppTracker: App Event: crash

 

I think this might be because I was lacking my key in config.lua :blink:

That seems like a logical place to start.

Rob

hi , i use build(3130) , android os 4.1.2 , copy to device and launch

crash log is below

9月 03 04:55:48.548 FATAL EXCEPTION: main

                    GT-I9300: java.lang.IndexOutOfBoundsException: charAt: -1 < 0

                    GT-I9300: at android.text.SpannableStringBuilder.charAt(SpannableStringBuilder.java:112)

                    GT-I9300: at android.text.Selection.setSelection(Selection.java:81)

                    GT-I9300: at android.widget.EditText.setSelection(EditText.java:107)

                    GT-I9300: at com.ansca.corona.ViewManager$13.run(ViewManager.java:573)

                    GT-I9300: at android.os.Handler.handleCallback(Handler.java:615)

                    GT-I9300: at android.os.Handler.dispatchMessage(Handler.java:92)

                    GT-I9300: at android.os.Looper.loop(Looper.java:137)

                    GT-I9300: at android.app.ActivityThread.main(ActivityThread.java:4898)

                    GT-I9300: at java.lang.reflect.Method.invokeNative(Native Method)

                    GT-

9月 03 04:55:48.548 I9300: at java.lang.reflect.Method.invoke(Method.java:511)

                    GT-I9300: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1006)

                    GT-I9300: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:773)

                    GT-I9300: at dalvik.system.NativeStart.main(Native Method)

but use build(3114) everything is fine

please help

Tks.

where is the code]

I think this might be because I was lacking my key in config.lua :blink:

That seems like a logical place to start.

Rob

hi , i use build(3130) , android os 4.1.2 , copy to device and launch

crash log is below

9月 03 04:55:48.548 FATAL EXCEPTION: main

                    GT-I9300: java.lang.IndexOutOfBoundsException: charAt: -1 < 0

                    GT-I9300: at android.text.SpannableStringBuilder.charAt(SpannableStringBuilder.java:112)

                    GT-I9300: at android.text.Selection.setSelection(Selection.java:81)

                    GT-I9300: at android.widget.EditText.setSelection(EditText.java:107)

                    GT-I9300: at com.ansca.corona.ViewManager$13.run(ViewManager.java:573)

                    GT-I9300: at android.os.Handler.handleCallback(Handler.java:615)

                    GT-I9300: at android.os.Handler.dispatchMessage(Handler.java:92)

                    GT-I9300: at android.os.Looper.loop(Looper.java:137)

                    GT-I9300: at android.app.ActivityThread.main(ActivityThread.java:4898)

                    GT-I9300: at java.lang.reflect.Method.invokeNative(Native Method)

                    GT-

9月 03 04:55:48.548 I9300: at java.lang.reflect.Method.invoke(Method.java:511)

                    GT-I9300: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1006)

                    GT-I9300: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:773)

                    GT-I9300: at dalvik.system.NativeStart.main(Native Method)

but use build(3114) everything is fine

please help

Tks.

where is the code]