Cordova-plugin-googlemaps problems packging the app

Hi Guys!!!

I have some problems packaging the app. I 'm using Ionic Pro tools to generate the Android’s package – profile Debug –

My code

The plugin version is

 "cordova-plugin-googlemaps": "^2.2.9",

And the custom plugin is.

      "cordova-plugin-googlemaps": {
        "API_KEY_FOR_ANDROID": "xxxxxxxxxxxxxxxxxxxxxxxxxxxx",
        "API_KEY_FOR_IOS": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
        "PLAY_SERVICES_VERSION": "12.0.0",
        "ANDROID_SUPPORT_V4_VERSION": "24.1.0"
      },

Console log of packaging

Download https://maven.google.com/com/android/support/support-annotations/26.1.0/support-annotations-26.1.0.jar
Download https://jcenter.bintray.com/com/google/gms/google-services/3.2.1/google-services-3.2.1.jar
Download https://maven.google.com/android/arch/core/common/1.0.0/common-1.0.0.jar
Download https://maven.google.com/android/arch/lifecycle/common/1.0.0/common-1.0.0.jar
/usr/src/app/platforms/android/app/src/main/java/plugin/google/maps/PluginMap.java:151: error: cannot access zzbgl
        options.compassEnabled(controls.getBoolean("compass"));
               ^
  class file for com.google.android.gms.internal.zzbgl not found
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.

Anyone ,have an idea?

Thanksssss :slight_smile:

This also happened to me. Same error. Still can’t fix it

google-services-3.2.1.jar is too old.

1 Like

It is happening to me…any solution??

I encountered the same issue. Did you manage to find a solution for this?

Edit:
Ok I managed the solve the issue at my side by just deleting the whole project and making a new check-out. Probably not very helpfull for others, but it’s worth it to note I guess.