Page 2 of 2

Re: Unable to locate Play Service dependency

Posted: Fri Nov 01, 2019 3:45 pm
by synto
Thanks to the adblogcat, i see something that sound strange, perhaps the LC Team could explain it ?

W View : requestLayout() improperly called by com.livecode.widget.barcodescanner.CameraSourcePreview{7cf60d V.E...... ......I. 0,0-0,0} during layout: running second layout pass

Re: Unable to locate Play Service dependency - BarcodeScanner issue

Posted: Fri Nov 01, 2019 7:50 pm
by synto
Once again, the problem came from my stack that was corrupted. No idea where it comes from.
Here is my first post, and the precious help of Bogs:

https://forums.livecode.com/viewtopic.p ... de#p182492

Same solution and the Barcode Scanner is displayed now...

Re: Unable to locate Play Service dependency - BarcodeScanner issue

Posted: Fri Nov 01, 2019 8:22 pm
by bogs
Glad to hear your getting some mileage out of that old chestnut synto :)

Re: Unable to locate Play Service dependency - BarcodeScanner issue

Posted: Fri Nov 01, 2019 10:44 pm
by sphere
I learned some too, cause i did not know you could copy it that way.
Thanks guys!

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

Posted: Thu Nov 14, 2019 7:20 pm
by sphere
There was an answer on the list concerning the original error message:
So the required dependency is the "Google Repository" package (in the
"Extras" folder), and NOT the "Google Play services" package as one would
have thought.

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

Posted: Sun Dec 22, 2019 12:47 pm
by synto
Yes Sphere, i haven't noticed that but your right.
Unfortunately the Google Repository is no longer available in the Android SDK Manager, so you have to follow the instructions on this link
https://docs.gluonhq.com/getting-starte ... id-support

especially the command
./sdkmanager "extras;android;m2repository" "extras;google;m2repository"

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

Posted: Wed Aug 19, 2020 6:32 am
by KimD
Back to LC after a few months break. Same issue. I'm getting an "Unable to locate Play Service" error message when trying to create Android Standalone with the Barcode Scanner Widget. The error message goes away if I delete the widget. I'm not (yet) using any settings on the widget. Just adding the widget "out of the box" to my stack is enough to prevent the build of an Android standalone.

Win 10 + LC Indy 9.6 + Android Studio 4.0.1

I'm struggling to work out how to install Google Repository, even after I've looked at the link provided. Do I need to uninstall Android Studio before following these instructions, or do I follow these with Android Studio already installed?

If with Android Studio already installed - do I put the sdkmanager.bat file etc into one of the Android Studio directories or into its own directory?

Thanks in advance

Kim

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

Posted: Wed Aug 19, 2020 1:04 pm
by sphere
In the picture of page 1 of this thread you see the Google Repository as last line. That needs to be installed.

And to your question, I think you can do the Command Line thing if needed, while Android Studio is already installed.
When the path in your environment to the sdk is good then it should function, else you need to go to the correct folder to execute it from command line.
Otherwise it should be install-able from within Android Studio.

But if this is all not working then probably you need to add Google's Maven Repository, Check this: https://developer.android.com/studio/intro/update and scroll down below the image where Android SDK is highlighted to the blue section where it is explained.

Hope this helps.

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

Posted: Thu Aug 20, 2020 3:04 am
by KimD
Thanks Sphere. I tried a variety of methods for solving this before stumbling upon this -

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

Following Panos instructions I had it fixed in a couple of minutes.

I've now got an Android barcode scanner deployed onto my test device. It works great. VERY impressed.

Kim

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

Posted: Thu Aug 20, 2020 5:12 am
by bangkok
KimD wrote:
Thu Aug 20, 2020 3:04 am
https://quality.livecode.com/show_bug.cgi?id=22384

Following Panos instructions I had it fixed in a couple of minutes.
Indeed ! It works perfectly (and so simple).

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

Posted: Thu Aug 20, 2020 5:37 am
by sphere
Great. !