Android Question Google places problem

Alessandra Pellegri

Active Member
Licensed User
Longtime User
I am trying to run this GooglePlaces example:
https://www.b4x.com/android/forum/threads/google-place.52961/#content

When I try to comile it I obtain this error:
B4X:
B4A version: 5.50
Parsing code.  (0.01s)
Compiling code.  (0.03s)
Compiling layouts code.  (0.00s)
Generating R file.  (0.10s)
Compiling generated Java code.  Error
B4A line: 16
hc.Initialize(\
javac 1.8.0_65
src\tut\escalera\google\place\httputils2service.java:195: error: cannot access ClientProtocolException
_hc.Initialize("hc");
  ^
  class file for org.apache.http.client.ClientProtocolException not found

I installed Google Play Services from AVD Manager as explained here:
https://www.b4x.com/android/forum/threads/google-maps-android-v2-tutorial.24415/
but I cannot find google-play-services.jar file.

My folder structure is : ...\AndroidSDK\extras\google\google_play_services and \docs and \samples , there is no libproject folder.
google-play-services.jar is neither found from windows search.


What could I do ?
Thank you
 

DonManfred

Expert
Licensed User
Longtime User
Upvote 0

Alessandra Pellegri

Active Member
Licensed User
Longtime User
Thank you, now it compiles. Anyway it doesn't work because I cannot add ResorceFolder.
This is what I have in AndroidSDK...Google services folder:
upload_2016-8-7_11-48-7.png


There isn't any res folder but I Google Services are installed from AVD manager.
So how could I proced ?

In any case my target is to send a picture to google to analyze it, as this example:
https://cloud.google.com/vision/

I know that there is a B4A library for vision.faces but I don't want recognize faces but places.

So is this the right road ?

Thank you
 
Last edited:
Upvote 0

Alessandra Pellegri

Active Member
Licensed User
Longtime User
I updated to v6.
I started a completely new project following these istructions:
https://www.b4x.com/android/forum/threads/google-maps.63930/#post-404386

But seems that google-play-services.jar is still needed:
B4X:
B4A version: 6.00
Parsing code.  (0.00s)
Compiling code.  (0.03s)
Compiling layouts code.  (0.01s)
Organizing libraries.  (0.00s)
Generating R file.  (0.32s)
Compiling generated Java code.  (1.34s)
Convert byte code - optimized dex.  (1.96s)
Packaging files.  (1.75s)
Copying libraries resources  Error
Could not find file 'C:\Program Files (x86)\Anywhere Software\Basic4android\libraries\google-play-services.jar'.
 
Upvote 0
Top