Cordova-plugin-googlemaps: Cordova plugin googlemaps fail under [email protected]

Created on 25 Apr 2018  路  10Comments  路  Source: mapsplugin/cordova-plugin-googlemaps

Hi I get a error you can see below. I try to build for [email protected]
I have tried "google maps plugin versions 2.2.0 up to 2.2.9" all fail
If I try version 2.0.0 up to 2.1.1 seams to be ok.

Can you please help me to solve the problem. see below versions of tools I'm using

[email protected]
[email protected]
[email protected]
[email protected]
ionic-native/[email protected]
ionic-native/[email protected]

[email protected]

:app:javaPreCompileDebug

:app:compileDebugJavaWithJavac
/home/dmitrirussu/projects/volution-b2c-app/platforms/android/app/src/main/java/plugin/google/maps/PluginPolygon.java:46: error: cannot access zzbfm
polygonOptions.add(path2.get(i));
^
class file for com.google.android.gms.internal.zzbfm 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.
1 error

FAILED

FAILURE:
Build failed with an exception.

  • What went wrong:

Execution failed for task ':app:compileDebugJavaWithJavac'.

Compilation failed; see the compiler error output for details.

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

  • Get more help at https://help.gradle.org

BUILD FAILED in 10s
39 actionable tasks: 39 executed
(node:2195) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: /home/dmitrirussu/projects/volution-b2c-app/platforms/android/gradlew: Command failed with exit code 1 Error output:
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
/home/dmitrirussu/projects/volution-b2c-app/platforms/android/app/src/main/java/plugin/google/maps/PluginPolygon.java:46: error: cannot access zzbfm
polygonOptions.add(path2.get(i));
^
class file for com.google.android.gms.internal.zzbfm 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.
1 error

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':app:compileDebugJavaWithJavac'.

    Compilation failed; see the compiler error output for details.

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

  • Get more help at https://help.gradle.org

BUILD FAILED in 10s

not bug

Most helpful comment

Make sure if one of plugin you have installed does not have diff Google play version... all plugins should have same google play version. If youbfound some thing, try to downgrade or upgrade them.. gradle file will help you to understood which Google play package is diff

All 10 comments

Please adjust the Google Play Services version. It's your role.
https://github.com/mapsplugin/cordova-plugin-googlemaps/issues/2222

How I can adjust the version of google play service for the "cordova google maps 2.2.9"

Your plugin force me to ipgrade the google play service, once I do that. No more options for lowest versions of android with lowest version off google play to use it

It's your choice. If you really want to stay on old cordova version, you just skip this plugin, and use another plugin.

I'm using the latest version of cordova 8.0 android sdk 26.1.1 which one I have use to get working your latest version of plugin?

after some investigation I found that in gardle build I had two diff version of gms:play-services one using 12.0 and second by plugin-push notification 15+, I have chnaged version for play version from 15+ to 12. and that start to create a build without any problems for plugin-google-maps version 2.2.9.

So most of fail error is based on this conflict of google-play-versions. we should keep same version to avoid any conflict.

cordova-plugin-googlemaps
com.google.android.gms:play-services-gcm:12.0.0

phonegap-plugin-push

com.google.android.gms:play-services-gcm:15+

For me, none of these solutions worked. I had to remove and then add android platform and it built successfully

ionic platform rm android
ionic platform add android

I have a problem liky you problem, but not working.

Make sure if one of plugin you have installed does not have diff Google play version... all plugins should have same google play version. If youbfound some thing, try to downgrade or upgrade them.. gradle file will help you to understood which Google play package is diff

It's work, thanks friend.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

BTW18 picture BTW18  路  3Comments

wf9a5m75 picture wf9a5m75  路  5Comments

nakulkundaliya picture nakulkundaliya  路  5Comments

splitice picture splitice  路  5Comments

TimothyFehr picture TimothyFehr  路  5Comments