Android scanner widget

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

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
Peter@multidesk.se
Posts: 136
Joined: Fri Oct 14, 2011 6:53 am

Android scanner widget

Post by Peter@multidesk.se » Tue Aug 16, 2022 3:32 pm

Can someone help me decipher this error message and come up with a solution to the problem.
It occurs when I select Android Barcode Scanner in the inclusions pane and try to build the app on my phone.

///Peter
Attachments
Screenshot 2022-08-16 at 16.13.44.png
/*Whats all the fuss with c# ?*/

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7210
Joined: Sat Apr 08, 2006 8:31 pm
Location: Minneapolis MN
Contact:

Re: Android scanner widget

Post by jacque » Wed Aug 17, 2022 5:41 pm

Probably you have the wrong version of Java installed, you need Java 8.

https://forums.livecode.com/viewtopic.p ... le#p198052
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

Peter@multidesk.se
Posts: 136
Joined: Fri Oct 14, 2011 6:53 am

Re: Android scanner widget

Post by Peter@multidesk.se » Wed Aug 17, 2022 6:00 pm

I downloaded Java 8.
Now it doesn't work to test the app regardless of the settings...

///Peter
Attachments
Screenshot 2022-08-17 at 18.55.04.png
/*Whats all the fuss with c# ?*/

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7210
Joined: Sat Apr 08, 2006 8:31 pm
Location: Minneapolis MN
Contact:

Re: Android scanner widget

Post by jacque » Wed Aug 17, 2022 7:56 pm

This thread may help, you need to completely remove your old copy of Java:
https://forums.livecode.com/viewtopic.p ... va#p207361
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

Peter@multidesk.se
Posts: 136
Joined: Fri Oct 14, 2011 6:53 am

Re: Android scanner widget

Post by Peter@multidesk.se » Thu Aug 18, 2022 7:51 am

I have now tried uninstalling java and reinstalling it.
No difference, same error message.

///Peter
/*Whats all the fuss with c# ?*/

Peter@multidesk.se
Posts: 136
Joined: Fri Oct 14, 2011 6:53 am

Re: Android scanner widget

Post by Peter@multidesk.se » Thu Aug 18, 2022 8:37 am

After a lot of back and forth, I have now managed to reinstall everything.
Unfortunately, I'm back at square one. When I check the Android scanner
in the inclusions pane, and try to build for testing, I get the original error message
(could not encode class bundle)

Any new suggestions?

///Peter
/*Whats all the fuss with c# ?*/

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7210
Joined: Sat Apr 08, 2006 8:31 pm
Location: Minneapolis MN
Contact:

Re: Android scanner widget

Post by jacque » Thu Aug 18, 2022 8:24 pm

There may be more answers in the forums for the many times this has come up. Try this search:
https://forums.livecode.com/search.php? ... e4bffb800f

Did you install the latest Build Tools? You need those too, which you can get via Android Studio.

If none of that works, I'm afraid I'm out of ideas. You might write to support@livecode.com and see if they have any suggestions.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

LiveCode_Panos
Livecode Staff Member
Livecode Staff Member
Posts: 818
Joined: Fri Feb 06, 2015 4:03 pm

Re: Android scanner widget

Post by LiveCode_Panos » Thu Aug 25, 2022 1:21 pm

Hello all,

This error is thrown if a newer version of the build tools is installed. It seems the barcode widget requires a tool that is not present or has changed location in this version of the build tools.

See this bug report for a workaround:

https://quality.livecode.com/show_bug.cgi?id=23570

Kind regards,
Panos

Post Reply

Return to “Android Deployment”