Page 1 of 2

Unable to locate Play Service dependency - BarcodeScanner issue [SOLVED]

Posted: Tue Oct 29, 2019 9:05 am
by synto
Hi,
I'm trying to deploy my app (SDK 4.1) to a Samsung S7 Android device.
Unfortunately LiveCode compilation display an error: "unable to locate play service dependency base version 9.4.0"

I've installed all the Google API and Google Service library relative to SDK 4.1 with the SDK Manager.
But the error is still displayed .

Is it a Livecode or a SDK error, and how can i solve it ?

Re: Unable to locate Play Service dependency

Posted: Tue Oct 29, 2019 2:46 pm
by sphere
Hi,

i don't know this error, but maybe this is mentioned:
sdk4.JPG
I'm not at my dev-pc so can't tell exactly.

Is there something special what you've added?

What is the Android version of the S7?

Re: Unable to locate Play Service dependency

Posted: Tue Oct 29, 2019 3:36 pm
by synto
Hi sphere, and thnaks for your help.
I've already checked this line but no effect.
The S7 SDK version is 8.

But the version number (9.4.0) on the error message make me think the problem come from Livecode...
But i'm on LCIndy 9.5.0 :( :?:

Re: Unable to locate Play Service dependency

Posted: Tue Oct 29, 2019 4:37 pm
by sphere
As far as i know the line should not matter, just to rule something out.

Can you post a screenshot of the error? So we can see the exact message.

ps and you have Oracle JAVA JDK 8.x.x installed? as some errors come due to the wrong JDK.

Re: Unable to locate Play Service dependency

Posted: Wed Oct 30, 2019 4:08 pm
by synto
I have reinstalled LCIndy and the Android SDK, but the error is still sidplayed, Here is a screenshot in attachment.

I have Java Oracle 8 SDK installed

Re: Unable to locate Play Service dependency

Posted: Wed Oct 30, 2019 4:31 pm
by synto
After some tests, the problem come from the inclusion of Android Barcode Scanner or Android Barcode Library
Don't know why but those inclusion works some weeks ago.

Does someone use these features ?

Re: Unable to locate Play Service dependency

Posted: Wed Oct 30, 2019 10:02 pm
by sphere
Yes i use them and i don't see those errors.
Are you using Indy 9.5.0 stable?
and on which OS? looks like Linux.

Re: Unable to locate Play Service dependency

Posted: Thu Oct 31, 2019 10:25 am
by synto
Yeah i use last version Indy stable 9.5.0, on Linux Xubuntu (not supported by LC Team, because of XFCE window manager i think)

You don't have problems with Android Barcode ? Before this last error, i have lot of problem to display the scanner on precise coord on my phone screen, or just show the scanner...

Re: Unable to locate Play Service dependency

Posted: Thu Oct 31, 2019 1:04 pm
by sphere
Yes there are some issues. Not all options work together in the Barcode settings.
Maybe check the quality site to check on open issues for the barcode scanner.

I use Linux too to be able to support apps on it. But i merely work on Win10.
So i'm not an expert on Linux, Richard and Bogs are more into depth.
So maybe they chime in.

Re: Unable to locate Play Service dependency

Posted: Thu Oct 31, 2019 8:59 pm
by bogs
sphere wrote:
Thu Oct 31, 2019 1:04 pm
Richard and Bogs are more into depth.
So maybe they chime in.
Heh, well, I could chime in, but as far as the problem goes, I wouldn't have much to offer. I don't have a mobile device, I don't develop for mobile, and I don't do anything with barcode scanners, so right off the top I'm pretty much out of the running.

As far as LC and XFCE go, I never had problems with the combo until the 8x series came along. I personally am not sure what changed, but it is an iffy proposition to try and get them to get along. MATE on the other hand, not nearly so much. So even there, I can't be of much help other than to suggest maybe trying your work on MATE or GNOME versions of 'buntu, something I am usually hesitant to suggest since I also tend to prefer the way XFCE does many things and since I don't use 'buntu (except for testing purposes to resolve problems).

Re: Unable to locate Play Service dependency

Posted: Thu Oct 31, 2019 9:24 pm
by sphere
bogs wrote:
Thu Oct 31, 2019 8:59 pm
I wouldn't have much to offer
Well you gave some good advice :)

Re: Unable to locate Play Service dependency

Posted: Thu Oct 31, 2019 9:32 pm
by bogs
Thanks :D It was worth what was charged for it :twisted:

Re: Unable to locate Play Service dependency

Posted: Fri Nov 01, 2019 1:56 pm
by synto
Thanks to all of you for you interest to my Barcode issue

Now i can compile the app and install it on my mobile but can't show the Scanner. I already managed to display it and run it some time ago, but I do not remember how... :cry:
Maybe check the quality site to check on open issues for the barcode scanner.
Could you tell me where i can find this "quality site" please ?

Re: Unable to locate Play Service dependency

Posted: Fri Nov 01, 2019 2:12 pm
by SparkOut
This forum thread contains a link to an example quality site report, as well as being somewhat relevant to the barcode scanning feature:
viewtopic.php?p=181835#p181835

Re: Unable to locate Play Service dependency

Posted: Fri Nov 01, 2019 3:03 pm
by synto
Thanks SparkOut, i will read that.
With a simple stack i can display the Barcode Scanner but unfortunately not in my app (however with exactly the same properties)... :?: :?: :(

Thanks to my test the previewXXX attributes is the resolution of the camera, it have to be the same ratio of your widget width and height.