in app purchasing broken?

The place to discuss anything and everything about running your LiveCode on Android

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
andyh1234
Posts: 476
Joined: Mon Aug 13, 2007 4:44 pm
Contact:

in app purchasing broken?

Post by andyh1234 » Tue Dec 31, 2024 6:14 pm

Is the in app purchasing option broken on Livecode 10?

I have pasted in my key and checked in the standalone settings box, but when I build the exe I get an error. If I uncheck the billing box the app compiles just fine.

andyh1234
Posts: 476
Joined: Mon Aug 13, 2007 4:44 pm
Contact:

Re: in app purchasing broken?

Post by andyh1234 » Tue Dec 31, 2024 6:41 pm

Sorry, I should say this is just for Andoid deployment, not iOS.

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7344
Joined: Sat Apr 08, 2006 8:31 pm
Contact:

Re: in app purchasing broken?

Post by jacque » Wed Jan 01, 2025 8:02 pm

What's the error say?
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

andyh1234
Posts: 476
Joined: Mon Aug 13, 2007 4:44 pm
Contact:

Re: in app purchasing broken?

Post by andyh1234 » Wed Jan 01, 2025 8:12 pm

The error says...

Code: Select all

Unable to build app for testing: could not encode class bundle - error:
Methods with invalid locals information:
void androidx.print.PrintHelper$PrintUriAdapter$1.onPostExecute(android.graphics.Bitmap)
Information in locals-table is invalid with respect to the stack map table. Local refers to non-present stack map type for register: 2 with constraint OBJECT.
Info in
/private/var/folders/qc/kzx8jjdn4zq3gpjvs87z2pgc0000gn/T/Temporaryltems/tmp.12380.sQ3wUuBb/28/classes.jar:androidx/viewpager/widget/PagerTitleStrip.class:
Methods with invalid locals information:
void androidx.viewpager.widget.PagerTitleStrip.updateTextPositions(int, float, boolean)
Information in locals-table is invalid with respect to the stack map table. Local refers to non-present stack map type for register: 37 with constraint INT.
I have found the same error marked as resolved and not a bug in the quality centre so I have resubmitted it there so Livecode can have another look.

As I mentioned, compiled without the google billing option checked and everything is fine, try to compile with the option checked and you get the above error.

andyh1234
Posts: 476
Joined: Mon Aug 13, 2007 4:44 pm
Contact:

Re: in app purchasing broken?

Post by andyh1234 » Wed Jan 01, 2025 8:58 pm

I also tried it in Livecode 10.0 and 10.0.1 RC3 with the same result

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7344
Joined: Sat Apr 08, 2006 8:31 pm
Contact:

Re: in app purchasing broken?

Post by jacque » Thu Jan 02, 2025 7:24 pm

I think you did the right thing sending it to the LC team. It looks like a printing error on first glance though I'm no expert, but billing doesn't seem like it should need to print anything.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

andyh1234
Posts: 476
Joined: Mon Aug 13, 2007 4:44 pm
Contact:

Re: in app purchasing broken?

Post by andyh1234 » Tue Jan 07, 2025 4:56 pm

Fixed!

I have the wrong version of build tools installed, I downgraded to build tools 33.0.0 and the app compiled sucessfully.

Post Reply

Return to “Android Deployment”