Android Question AHViewPager and Google Maps (Extras) error

FrankBerra

Active Member
Licensed User
Longtime User
Hi all
i am developing an app that uses google maps. Everything worked perfectly but now i need to use AHViewPager.
If I add AHViewPager library to project and i compile the app even if i don't use the AHViewPager in the code the compiler returns me an error:

B4X:
Compiling generated Java code.    Error
B4A line: 9746
GoogleMapsExtras1.AddCircle(gmap_Invisibilita,c
javac 1.8.0_25
src\mapper\app\main.java:3735: error: package com.google.android.gms.maps does not exist
_googlemapsextras1.AddCircle((com.google.android.gms.maps.GoogleMap)(mostCurrent._gmap_invisibilita.getObject()),(com.google.android.gms.maps.model.CircleOptions)(_circle.getObject()));

Could someone understand where is the problem?
 

FrankBerra

Active Member
Licensed User
Longtime User
Yes i attach it here. I included in it also the libraries that i use.

If you compile without loading AHViewPager library it compiles perfectly
If you add AHViewPager library it won't compile even if i don't use any code reference to AHViewPager
 

Attachments

  • TestErrorMaps.zip
    140.2 KB · Views: 191
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
Asuming you are using b4a 6+ and have the maven repositories installed correctly.

Remove
B4X:
   #AdditionalRes: C:\Android\extras\google\google_play_services\libproject\google-play-services_lib\res, com.google.android.gms

Add
B4X:
    #AdditionalJar: com.google.android.gms:play-services-maps
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…