Page 1 of 1

Android scanner widget

Posted: Tue Aug 16, 2022 3:32 pm
by Peter@multidesk.se
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

Re: Android scanner widget

Posted: Wed Aug 17, 2022 5:41 pm
by jacque
Probably you have the wrong version of Java installed, you need Java 8.

https://forums.livecode.com/viewtopic.p ... le#p198052

Re: Android scanner widget

Posted: Wed Aug 17, 2022 6:00 pm
by Peter@multidesk.se
I downloaded Java 8.
Now it doesn't work to test the app regardless of the settings...

///Peter

Re: Android scanner widget

Posted: Wed Aug 17, 2022 7:56 pm
by jacque
This thread may help, you need to completely remove your old copy of Java:
https://forums.livecode.com/viewtopic.p ... va#p207361

Re: Android scanner widget

Posted: Thu Aug 18, 2022 7:51 am
by Peter@multidesk.se
I have now tried uninstalling java and reinstalling it.
No difference, same error message.

///Peter

Re: Android scanner widget

Posted: Thu Aug 18, 2022 8:37 am
by Peter@multidesk.se
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

Re: Android scanner widget

Posted: Thu Aug 18, 2022 8:24 pm
by jacque
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.

Re: Android scanner widget

Posted: Thu Aug 25, 2022 1:21 pm
by LiveCode_Panos
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